View source: R/fitmethod-gridSearch.R
find the max (or min) of a function by brute-force search through a grid TODO - handle multiple maxima
1 2 | grid.search(grid.vals, func, return.grid = FALSE, cpp = FALSE,
verbose = FALSE, ...)
|
grid.vals |
either a list whose entries are vectors w/ parameter ranges, or a table of parameter values to evaluate |
func |
the function to maximize |
return.grid |
if TRUE, return the grid used |
cpp |
if TRUE, use the c++ code; otherwise, use R's apply() |
verbose |
print detailed output |
... |
other args, to be passed along to func |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.