Click or drag to resize
Accord.NET (logo)

DoubleArrayChromosome Constructor (IRandomNumberGeneratorDouble, IRandomNumberGeneratorDouble, IRandomNumberGeneratorDouble, Int32)

Initializes a new instance of the DoubleArrayChromosome class.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
Syntax
public DoubleArrayChromosome(
	IRandomNumberGenerator<double> chromosomeGenerator,
	IRandomNumberGenerator<double> mutationMultiplierGenerator,
	IRandomNumberGenerator<double> mutationAdditionGenerator,
	int length
)
Request Example View Source

Parameters

chromosomeGenerator
Type: Accord.Math.RandomIRandomNumberGeneratorDouble
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: Accord.Math.RandomIRandomNumberGeneratorDouble
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: Accord.Math.RandomIRandomNumberGeneratorDouble
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: SystemInt32
Chromosome's length in array elements, [2, MaxLength].
Remarks

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

See Also