designRandom: Random Design

View source: R/DoE.R

designRandomR Documentation

Random Design

Description

Create a random initial population or experimental design, given a specifed creation function, as well as a optional set of user-specified design members and a maximum design size. Also removes duplicates from the design/population.

Usage

designRandom(x = NULL, cf, size, control = list())

Arguments

x

Optional list of user specified solutions to be added to the design, defaults to NULL

cf

Creation function, creates random new individuals

size

size of the design

control

not used

Value

Returns list with experimental design without duplicates

See Also

optimRS, designMaxMinDist

Examples

# Create a design of 10 permutations, each with 5 elements
design <- designRandom(NULL,function()sample(5),10)
# Create a design of 20 real valued 2d vectors
design <- designRandom(NULL,function()runif(2),20)

CEGO documentation built on May 29, 2024, 3:35 a.m.