|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.evolve.select.ElitistSelection<I>
I - individual typepublic final class ElitistSelection<I>
Elitist selection function.
| Constructor Summary | |
|---|---|
ElitistSelection(int individuals)
Create a new elitist selection function with the specified number of individuals. |
|
| Method Summary | |
|---|---|
int |
getIndividuals()
Return the number of individuals for this elitist selection function. |
Collection<I> |
select(Collection<I> population,
WeightedMap<I> scores)
Select individuals from the specified population of individuals based on the specified fitness scores. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElitistSelection(int individuals)
individuals - number of individuals for this elitist
selection function, must be >= 0| Method Detail |
|---|
public int getIndividuals()
public Collection<I> select(Collection<I> population,
WeightedMap<I> scores)
select in interface Selection<I>population - population of individualsscores - fitness scores
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||