DoCrossover: Performs crossing over for an Individual and return a...

Description Usage Arguments Examples

Description

This function splits and combines two chromosome of each individual, returning a resulting chromosome that is then eventually passed to its child.

Usage

1
DoCrossover(individual, lambda = 2)

Arguments

individual

The individual on which crossing over should be performed.

lambda

The expected number of pieces in which a chromosome will split.

Examples

 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"))

alghul96/AdmSim documentation built on May 27, 2019, 3:29 p.m.