|
DoubleArrayChromosome Constructor (IRandomNumberGeneratorDouble, IRandomNumberGeneratorDouble, IRandomNumberGeneratorDouble, Double)
|
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,
double[] values
)
Public Sub New (
chromosomeGenerator As IRandomNumberGenerator(Of Double),
mutationMultiplierGenerator As IRandomNumberGenerator(Of Double),
mutationAdditionGenerator As IRandomNumberGenerator(Of Double),
values As Double()
)
Request Example
View SourceParameters
- 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 Exception | Condition |
---|
ArgumentOutOfRangeException | Invalid length of values array. |
Remarks The constructor initializes the new chromosome with specified values.
See Also