|
GEPChromosomeRecombine Method
|
Swap parts of two chromosomes.
Namespace:
Accord.Genetic
Assembly:
Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
Syntaxprotected static void Recombine(
IGPGene[] src1,
IGPGene[] src2,
int point,
int length
)
Protected Shared Sub Recombine (
src1 As IGPGene(),
src2 As IGPGene(),
point As Integer,
length As Integer
)
Request Example
View SourceParameters
- src1
- Type: Accord.GeneticIGPGene
First chromosome participating in genes' interchange. - src2
- Type: Accord.GeneticIGPGene
Second chromosome participating in genes' interchange. - point
- Type: SystemInt32
Index of the first gene in the interchange sequence. - length
- Type: SystemInt32
Length of the interchange sequence - number of genes
to interchange.
RemarksThe method performs interchanging of genes between two chromosomes
starting from the point position.
See Also