org.encog.neural.neat.training.opp
public class NEATMutateWeights extends NEATMutation
Constructor and Description |
---|
NEATMutateWeights(SelectLinks theLinkSelection,
MutateLinkWeight theWeightMutation)
Construct a weight mutation operator.
|
Modifier and Type | Method and Description |
---|---|
SelectLinks |
getLinkSelection() |
MutateLinkWeight |
getWeightMutation() |
void |
performOperation(Random rnd,
Genome[] parents,
int parentIndex,
Genome[] offspring,
int offspringIndex)
Perform the evolutionary operation.
|
String |
toString() |
chooseRandomNeuron, createLink, getElementPos, getOwner, init, isDuplicateLink, isNeuronNeeded, obtainGenome, offspringProduced, parentsNeeded, removeNeuron
public NEATMutateWeights(SelectLinks theLinkSelection, MutateLinkWeight theWeightMutation)
theLinkSelection
- The method used to choose the links for mutation.theWeightMutation
- The method used to actually mutate the weights.public SelectLinks getLinkSelection()
public MutateLinkWeight getWeightMutation()
public void performOperation(Random rnd, Genome[] parents, int parentIndex, Genome[] offspring, int offspringIndex)
rnd
- A random number generator.parents
- The parents.parentIndex
- The index into the parents array.offspring
- The offspring.offspringIndex
- An index into the offspring array.Copyright © 2014. All Rights Reserved.