Helper function for grid search for mu and sigma.
optimizeGrid(currentBestParam, paramUnique, iter, sigmLimit = TRUE)(vector) specifying the new search region fo the parameter to be optimized
(numeric) value specifying the current best value for this parameter
(numeric) vector of possible values for this parameter
(integer) indicating the number of iteration, as in the first iteration the search region is larger than in the following iterations
(logical) specifiying if parameter is sigma and thus minimum is 0
Tatjana Ammer tatjana.ammer@roche.com