Initializes a new instance of the DoubleArrayChromosome class.

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

Syntax

C#
public DoubleArrayChromosome(
	IRandomNumberGenerator chromosomeGenerator,
	IRandomNumberGenerator mutationMultiplierGenerator,
	IRandomNumberGenerator mutationAdditionGenerator,
	int length
)

Parameters

chromosomeGenerator
Type: AForge.Math.Random..::.IRandomNumberGenerator
Chromosome generator - random number generator, which is used to initialize chromosome's genes, which is done by calling Generate()()() method or in class constructor.
mutationMultiplierGenerator
Type: AForge.Math.Random..::.IRandomNumberGenerator
Mutation multiplier generator - random number generator, which is used to generate random multiplier values, which are used to multiply chromosome's genes during mutation.
mutationAdditionGenerator
Type: AForge.Math.Random..::.IRandomNumberGenerator
Mutation addition generator - random number generator, which is used to generate random addition values, which are used to add to chromosome's genes during mutation.
length
Type: System..::.Int32
Chromosome's length in array elements, [2, MaxLength].

Remarks

The constructor initializes the new chromosome randomly by calling Generate()()() method.

See Also