public class NEATMutateWeights extends NEATMutation implements java.io.Serializable
| 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(java.util.Random rnd,
Genome[] parents,
int parentIndex,
Genome[] offspring,
int offspringIndex)
Perform the evolutionary operation.
|
java.lang.String |
toString() |
chooseRandomNeuron, createLink, getElementPos, getOwner, init, isDuplicateLink, isNeuronNeeded, obtainGenome, offspringProduced, parentsNeeded, removeNeuronpublic 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(java.util.Random rnd,
Genome[] parents,
int parentIndex,
Genome[] offspring,
int offspringIndex)
performOperation in interface EvolutionaryOperatorrnd - A random number generator.parents - The parents.parentIndex - The index into the parents array.offspring - The offspring.offspringIndex - An index into the offspring array.public java.lang.String toString()
toString in class java.lang.Object