public class SelectProportion extends java.lang.Object implements SelectLinks, java.io.Serializable
| 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.
|
java.util.List<NEATLinkGene> |
selectLinks(java.util.Random rnd,
NEATGenome genome)
Select links from the specified genome.
|
java.lang.String |
toString() |
public SelectProportion(double theProportion)
theProportion - The proportion to select from.public void init(EvolutionaryAlgorithm theTrainer)
init in interface SelectLinkstheTrainer - The trainer.public java.util.List<NEATLinkGene> selectLinks(java.util.Random rnd, NEATGenome genome)
selectLinks in interface SelectLinksrnd - A random number generator.genome - The genome to select from.public EvolutionaryAlgorithm getTrainer()
getTrainer in interface SelectLinkspublic java.lang.String toString()
toString in class java.lang.Object