public class NEATMutateRemoveLink extends NEATMutation implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
MIN_LINK
Do not remove from genomes that have fewer than this number of links.
|
| Constructor and Description |
|---|
NEATMutateRemoveLink() |
| Modifier and Type | Method and Description |
|---|---|
void |
performOperation(java.util.Random rnd,
Genome[] parents,
int parentIndex,
Genome[] offspring,
int offspringIndex)
Perform the evolutionary operation.
|
chooseRandomNeuron, createLink, getElementPos, getOwner, init, isDuplicateLink, isNeuronNeeded, obtainGenome, offspringProduced, parentsNeeded, removeNeuronpublic static final int MIN_LINK
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.