org.encog.neural.neat.training.opp.links
public class MutateResetLinkWeight extends Object implements MutateLinkWeight
| Constructor and Description |
|---|
MutateResetLinkWeight() |
| Modifier and Type | Method and Description |
|---|---|
EvolutionaryAlgorithm |
getTrainer() |
void |
init(EvolutionaryAlgorithm theTrainer)
Setup the link mutator.
|
void |
mutateWeight(Random rnd,
NEATLinkGene linkGene,
double weightRange)
Perform the weight mutation on the specified link.
|
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(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.Copyright © 2014. All Rights Reserved.