|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Natural selectors are responsible for actually selecting a specified number of Chromosome specimens from a population, using the fitness values as a guide. Usually fitness is treated as a statistic probability of survival, not as the sole determining factor. Therefore, Chromosomes with higher fitness values are more likely to survive than those with lesser fitness values, but it's not guaranteed.
| Method Summary | |
void |
add(org.jgap.Chromosome chromosome,
int fitness)
Add a Chromosome instance and corresponding fitness value to this selector's working pool of Chromosomes. |
void |
empty()
Empty out the working pool of Chromosomes. |
org.jgap.Chromosome[] |
select(int howMany)
Select a given number of Chromosomes from the pool that will continue to survive. |
| Method Detail |
public void add(org.jgap.Chromosome chromosome,
int fitness)
public org.jgap.Chromosome[] select(int howMany)
public void empty()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||