generators {ecr} | R Documentation |
Population generators
Description
Utility functions to build a set of individuals. The function
gen
expects an R expression and a number n in order to create a list
of n individuals based on the given expression. Functions genBin
,
genPerm
and genReal
are shortcuts for initializing populations
of binary strings, permutations or real-valued vectors respectively.
Usage
gen(expr, n)
genBin(n, n.dim)
genPerm(n, n.dim)
genReal(n, n.dim, lower, upper)
Arguments
expr |
[R expression] |
n |
[ |
n.dim |
[ |
lower |
[ |
upper |
[ |
Value
[list
]
[Package ecr version 2.1.1 Index]