public class SelectFixed extends java.lang.Object implements SelectLinks, java.io.Serializable
| Constructor and Description |
|---|
SelectFixed(int theLinkCount)
Construct a fixed count link selector.
|
| 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 SelectFixed(int theLinkCount)
theLinkCount - The number of links to select.public EvolutionaryAlgorithm getTrainer()
getTrainer in interface SelectLinkspublic 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 java.lang.String toString()
toString in class java.lang.Object