designRandom | R Documentation |
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.
designRandom(x = NULL, cf, size, control = list())
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 |
Returns list with experimental design without duplicates
optimRS
, designMaxMinDist
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.