drawRandom: Draw a random value for a given parameter

View source: R/SOptim_RandSearchAlgorithm.R

drawRandomR Documentation

Draw a random value for a given parameter

Description

An auxiliary function used in randomSearchOptim to draw a random value of a parameter using an input range.

Usage

drawRandom(paramList, n)

Arguments

paramList

A list object containing parameter ranges

n

Number of values to draw from runif.

Value

A matrix containing the parameter grid to be tested

See Also

runif

Examples


params <- list("thresh"  = c(0.1,0.5),
               "minsize" = c(10,20))

drawRandom(paramList = params, n = 10)



joaofgoncalves/SegOptim documentation built on Feb. 5, 2024, 11:10 p.m.