org.neat4j.neat.core.mutators
Class NEATMutator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NEATMutator
public NEATMutator()
NEATMutator
public NEATMutator(double pAddNode,
double pAddLink,
double pDisable)
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)