View source: R/SOptim_RandSearchAlgorithm.R
drawRandom | R Documentation |
An auxiliary function used in randomSearchOptim to draw a random value of a parameter using an input range.
drawRandom(paramList, n)
paramList |
A list object containing parameter ranges |
n |
Number of values to draw from runif. |
A matrix containing the parameter grid to be tested
runif
params <- list("thresh" = c(0.1,0.5),
"minsize" = c(10,20))
drawRandom(paramList = params, n = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.