|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.evolve.select.RandomSelection<I>
I - individual typepublic final class RandomSelection<I>
Random selection function.
| Constructor Summary | |
|---|---|
RandomSelection()
Create a new random selection function with the default source of randomness. |
|
RandomSelection(Random random)
Create a new random selection function with the specified source of randomness. |
|
| Method Summary | |
|---|---|
Random |
getRandom()
Return the source of randomness for this random 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 RandomSelection()
public RandomSelection(Random random)
random - source of randomness, must not be null| Method Detail |
|---|
public Random getRandom()
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 | |||||||||