org.artoflife.gp.genome.numeric
Class FloatGaussianRangeMutator
java.lang.Object
|
+--org.artoflife.gp.genome.numeric.FloatGaussianRangeMutator
- All Implemented Interfaces:
- GpMutator
- public class FloatGaussianRangeMutator
- extends java.lang.Object
- implements GpMutator
Mutates a FloatGene's value by adding a random number to it, with
the random number distributed in a Gaussian distribution
with mean 0.0, and standard deviation configured with property:
[this.getClass().getName()].StandardDeviation
or 1.0f by default.
- Author:
- Steve Meyfroidt
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
standardDeviation
protected float standardDeviation
FloatGaussianRangeMutator
public FloatGaussianRangeMutator()
mutate
public void mutate(java.lang.String geneSelectionId,
GpTreeNode gene)
- Specified by:
mutate
in interface GpMutator
- Parameters:
geneSelectionId
- ID of allowed genes that can be created for this
mutationgene
- gene to mutate- See Also:
GpMutator.mutate(java.lang.String, org.artoflife.gp.genome.GpTreeNode)
Copyright © 2002 the Art Of Life team. All Rights Reserved.