Click or drag to resize
Accord.NET (logo)

DoubleArrayChromosomeMutate Method

Mutation operator.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.7.0
Syntax
public override void Mutate()
Request Example View Source

Implements

IChromosomeMutate
Remarks

The method performs chromosome's mutation, adding random number to chromosome's gene or multiplying the gene by random number. These random numbers are generated with help of mutation multiplier and mutation addition generators.

The exact type of mutation applied to the particular gene is selected randomly each time and depends on MutationBalancer. Before mutation is done a random number is generated in [0, 1] range - if the random number is smaller than MutationBalancer, then multiplication mutation is done, otherwise addition mutation.

See Also