Click or drag to resize
Accord.NET (logo)

GEPChromosomeRecombine Method

Swap parts of two chromosomes.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.7.0
Syntax
protected static void Recombine(
	IGPGene[] src1,
	IGPGene[] src2,
	int point,
	int length
)
Request Example View Source

Parameters

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.
Remarks

The method performs interchanging of genes between two chromosomes starting from the point position.

See Also