org.encog.neural.neat.training.opp.links
public class MutatePerturbLinkWeight extends Object implements MutateLinkWeight
| Constructor and Description |
|---|
MutatePerturbLinkWeight(double theSigma)
Construct the perturbing mutator.
|
| 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 MutatePerturbLinkWeight(double theSigma)
theSigma - The sigma (standard deviation) for all random numbers.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.