Description Usage Arguments Examples
This function splits and combines two chromosome of each individual, returning a resulting chromosome that is then eventually passed to its child.
1 | DoCrossover(individual, lambda = 2)
|
individual |
The individual on which crossing over should be performed. |
lambda |
The expected number of pieces in which a chromosome will split. |
1 2 3 4 5 6 7 8 9 10 11 12 13 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
structure(function (individual, lambda = 2)
{
standardGeneric("DoCrossover")
}, generic = structure("DoCrossover", package = "AdmSim"), package = "AdmSim", group = list(), valueClass = character(0), signature = c("individual",
"lambda"), default = `\001NULL\001`, skeleton = (function (individual,
lambda = 2)
stop("invalid call in method dispatch to 'DoCrossover' (no default method)",
domain = NA))(individual, lambda), class = structure("nonstandardGenericFunction", package = "methods"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.