org.encog.ml.ea.opp
public interface EvolutionaryOperator
Modifier and Type | Method and Description |
---|---|
void |
init(EvolutionaryAlgorithm theOwner)
Called to setup the evolutionary operator.
|
int |
offspringProduced() |
int |
parentsNeeded() |
void |
performOperation(Random rnd,
Genome[] parents,
int parentIndex,
Genome[] offspring,
int offspringIndex)
Perform the evolutionary operation.
|
void init(EvolutionaryAlgorithm theOwner)
theOwner
- The evolutionary algorithm used with this operator.int offspringProduced()
int parentsNeeded()
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.