Description Usage Arguments Value Examples
View source: R/SphereOptimize.R
The function SphereOptimize conducts optimization on a unit sphere. If the size of neighbor near the initial value is specified, the L-BFGS-B opitmization algorithm will be called. Otherwise this function searches the whole unit sphere using Nelder-Mead algorithm by default. Other optimization methods are allowed.
1 | SphereOptimize(par, fn, neighbor = NULL, ...)
|
par |
Initial values for the parameters to be optimized over. Must be in Cartesian coordinates and on a unit sphere. |
fn |
A function to be minimized (or maximized). |
neighbor |
Radius of neighbor to search for the optimal results. If not specified, this function will search for the whole unit sphere. |
... |
Extra arguments that can be passed to optim(). |
A list compose three items.
par The optimal restuls found.
value The value of fn corresponding to par.
method The optimization algorithm used.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.