public class MutateResetLinkWeight extends java.lang.Object implements MutateLinkWeight, java.io.Serializable
| Constructor and Description |
|---|
MutateResetLinkWeight() |
| Modifier and Type | Method and Description |
|---|---|
EvolutionaryAlgorithm |
getTrainer() |
void |
init(EvolutionaryAlgorithm theTrainer)
Setup the link mutator.
|
void |
mutateWeight(java.util.Random rnd,
NEATLinkGene linkGene,
double weightRange)
Perform the weight mutation on the specified link.
|
java.lang.String |
toString() |
public EvolutionaryAlgorithm getTrainer()
getTrainer in interface MutateLinkWeightpublic void init(EvolutionaryAlgorithm theTrainer)
init in interface MutateLinkWeighttheTrainer - The training class that this mutator is used with.public void mutateWeight(java.util.Random rnd,
NEATLinkGene linkGene,
double weightRange)
mutateWeight in interface MutateLinkWeightrnd - A random number generator.linkGene - The link to mutate.weightRange - The weight range, weights are between -weightRange and
+weightRange.public java.lang.String toString()
toString in class java.lang.Object