artoflife pre0.1.0-dev

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

Field Summary
protected  float standardDeviation
           
 
Constructor Summary
FloatGaussianRangeMutator()
           
 
Method Summary
 void mutate(java.lang.String geneSelectionId, GpTreeNode gene)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

standardDeviation

protected float standardDeviation
Constructor Detail

FloatGaussianRangeMutator

public FloatGaussianRangeMutator()
Method Detail

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 mutation
gene - gene to mutate
See Also:
GpMutator.mutate(java.lang.String, org.artoflife.gp.genome.GpTreeNode)

artoflife pre0.1.0-dev

Copyright © 2002 the Art Of Life team. All Rights Reserved.