View source: R/SOptim_RandSearchAlgorithm.R
adjustRangesFromCentralPoint | R Documentation |
An auxiliary function used in randomSearchOptim to adjust ranges around a point. This adjustement is required to draw a random set of points in the vicinity of the best central point in a given iteration.
adjustRangesFromCentralPoint(paramList, centralPoint, neighSizeProp = 0.025)
paramList |
An input list containing the parameter ranges |
centralPoint |
A vector containing coordinates (parameter values) for the best point.
It must have the same size as |
neighSizeProp |
Size of the neighbourhood for a given parameter, i.e., a real value contained
in ]0, 1] used to multiply the range size as: |
A list object containing the updated ranges.
params <- list("thresh" = c(0.1,0.5), "minsize" = c(10,20))
adjustRangesFromCentralPoint(paramList = params,
centralPoint = c(0.15, 12), neighSizeProp = 0.025)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.