JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.forceFields
Class Mutation3Parents

java.lang.Object
  extended bygov.nasa.javaGenes.core.ChildMaker
      extended bygov.nasa.javaGenes.forceFields.ChromosomeMutation
          extended bygov.nasa.javaGenes.forceFields.Mutation3Parents
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Mutation3Parents
extends ChromosomeMutation

Mutates all alleles with a random number chosen from a Gaussian distribution with the standard deviation taken by the difference in two of the children

See Also:
Serialized Form

Field Summary
protected  double standardDeviationFactor
           
 
Fields inherited from class gov.nasa.javaGenes.forceFields.ChromosomeMutation
alleles, frequency, limitToOriginalInterval, standardDeviation
 
Fields inherited from class gov.nasa.javaGenes.core.ChildMaker
cumulative, forEvolution, last
 
Constructor Summary
Mutation3Parents(AlleleTemplate a)
           
Mutation3Parents(AlleleTemplate a, double inStandardDeviationFactor)
           
 
Method Summary
 Evolvable[] makeChildren(Evolvable[] parents)
          If this.fraction too small, can get effective infinite loop since at least one change is required for the method to complete!
 int numberOfParents()
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.forceFields.ChromosomeMutation
forceInsideAlleleLimits, getNewChromosome, setLimitToOriginalInterval
 
Methods inherited from class gov.nasa.javaGenes.core.ChildMaker
checkLastResults, checkResults, clearLast, getAndClearLastTabSeparatedResults, getFitnessFunctionNames, getLastTabSeparatedResults, headerFragment, makeChildren, mutate, neverUsed, proportionDown, results, setFitnessFunction, setFitnessFunctionNames, subClassMeasures, tabSeparatedResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

standardDeviationFactor

protected double standardDeviationFactor
Constructor Detail

Mutation3Parents

public Mutation3Parents(AlleleTemplate a)

Mutation3Parents

public Mutation3Parents(AlleleTemplate a,
                        double inStandardDeviationFactor)
Method Detail

makeChildren

public Evolvable[] makeChildren(Evolvable[] parents)
Description copied from class: ChromosomeMutation
If this.fraction too small, can get effective infinite loop since at least one change is required for the method to complete!

Overrides:
makeChildren in class ChromosomeMutation

numberOfParents

public int numberOfParents()
Overrides:
numberOfParents in class ChromosomeMutation

toString

public java.lang.String toString()
Overrides:
toString in class ChromosomeMutation

JavaGenes, NASA Ames. Written largely by Al Globus