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,
	double[] values
)

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.
values
Type: array< System..::.Double >[]()[]
Values used to initialize the chromosome.

Remarks

The constructor initializes the new chromosome with specified values.

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionInvalid length of values array.

See Also