Click or drag to resize
Accord.NET (logo)

DoubleArrayChromosome Constructor (IRandomNumberGeneratorDouble, IRandomNumberGeneratorDouble, IRandomNumberGeneratorDouble, Double)

Initializes a new instance of the DoubleArrayChromosome class.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.6.0
Syntax
public DoubleArrayChromosome(
	IRandomNumberGenerator<double> chromosomeGenerator,
	IRandomNumberGenerator<double> mutationMultiplierGenerator,
	IRandomNumberGenerator<double> mutationAdditionGenerator,
	double[] values
)
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.
values
Type: SystemDouble
Values used to initialize the chromosome.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionInvalid length of values array.
Remarks

The constructor initializes the new chromosome with specified values.

See Also