|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.evolve.select.RankBasedSelection<I>
I - individual typepublic final class RankBasedSelection<I>
Rank-based selection function.
| Constructor Summary | |
|---|---|
RankBasedSelection(int rank)
Create a new rank based selection function with the specified rank. |
|
| Method Summary | |
|---|---|
int |
getRank()
Return the rank for this rank based 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 RankBasedSelection(int rank)
rank - rank for this rank based selection function,
must be >= 1| Method Detail |
|---|
public int getRank()
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 | |||||||||