org.encog.neural.neat.training.opp.links
public class SelectProportion extends Object implements SelectLinks
Constructor and Description |
---|
SelectProportion(double theProportion)
Select based on proportion.
|
Modifier and Type | Method and Description |
---|---|
EvolutionaryAlgorithm |
getTrainer() |
void |
init(EvolutionaryAlgorithm theTrainer)
Setup the selector.
|
List<NEATLinkGene> |
selectLinks(Random rnd,
NEATGenome genome)
Select links from the specified genome.
|
String |
toString() |
public SelectProportion(double theProportion)
theProportion
- The proportion to select from.public void init(EvolutionaryAlgorithm theTrainer)
init
in interface SelectLinks
theTrainer
- The trainer.public List<NEATLinkGene> selectLinks(Random rnd, NEATGenome genome)
selectLinks
in interface SelectLinks
rnd
- A random number generator.genome
- The genome to select from.public EvolutionaryAlgorithm getTrainer()
getTrainer
in interface SelectLinks
Copyright © 2014. All Rights Reserved.