Initializes a new instance of the GEPChromosome class.

Namespace:  AForge.Genetic
Assembly:  AForge.Genetic (in AForge.Genetic.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public GEPChromosome(
	IGPGene ancestor,
	int headLength
)

Parameters

ancestor
Type: AForge.Genetic..::.IGPGene
A gene, which is used as generator for the genetic tree.
headLength
Type: System..::.Int32
Length of GEP chromosome's head (see headLength).

Remarks

This constructor creates a randomly generated GEP chromosome, which has all genes of the same type and properties as the specified ancestor.

See Also