Click or drag to resize
Accord.NET (logo)

GEPChromosome Constructor (IGPGene, Int32)

Initializes a new instance of the GEPChromosome class.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
Syntax
public GEPChromosome(
	IGPGene ancestor,
	int headLength
)
Request Example View Source

Parameters

ancestor
Type: Accord.GeneticIGPGene
A gene, which is used as generator for the genetic tree.
headLength
Type: SystemInt32
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