org.neat4j.neat.core.mutators
Class NEATMutator

java.lang.Object
  extended by org.neat4j.neat.core.mutators.NEATMutator
All Implemented Interfaces:
java.io.Serializable, Mutator, Operator

public class NEATMutator
extends java.lang.Object
implements Mutator

Author:
MSimmerson Performs all Link and node mutations
See Also:
Serialized Form

Constructor Summary
NEATMutator()
           
NEATMutator(double pAddNode, double pAddLink, double pDisable)
           
 
Method Summary
 Chromosome mutate(Chromosome mutatee)
          Mutates the chromsome based on the set of probabilities.
 void setBiasPerturb(double biasPerturb)
           
 void setFeatureSelection(boolean featureSelection)
           
 void setPAddLink(double addLink)
           
 void setPAddNode(double addNode)
           
 void setPerturb(double perturb)
           
 void setPMutateBias(double mutateBias)
           
 void setPPerturb(double perturb)
           
 void setProbability(double prob)
           
 void setPToggle(double toggle)
           
 void setPWeightReplaced(double pWR)
           
 void setRecurrencyAllowed(boolean allowed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NEATMutator

public NEATMutator()

NEATMutator

public NEATMutator(double pAddNode,
                   double pAddLink,
                   double pDisable)
Method Detail

setRecurrencyAllowed

public void setRecurrencyAllowed(boolean allowed)

setProbability

public void setProbability(double prob)
Specified by:
setProbability in interface Mutator

setPWeightReplaced

public void setPWeightReplaced(double pWR)

mutate

public Chromosome mutate(Chromosome mutatee)
Mutates the chromsome based on the set of probabilities.

Specified by:
mutate in interface Mutator

setPAddLink

public void setPAddLink(double addLink)
Parameters:
addLink - The pAddLink to set.

setPAddNode

public void setPAddNode(double addNode)
Parameters:
addNode - The pAddNode to set.

setPToggle

public void setPToggle(double toggle)
Parameters:
disable - The pDisable to set.

setPPerturb

public void setPPerturb(double perturb)
Parameters:
perturb - The pPerturb to set.

setFeatureSelection

public void setFeatureSelection(boolean featureSelection)

setPMutateBias

public void setPMutateBias(double mutateBias)

setBiasPerturb

public void setBiasPerturb(double biasPerturb)

setPerturb

public void setPerturb(double perturb)