|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.evolve.fitness.RandomFitness<I>
I - individual typepublic final class RandomFitness<I>
Random fitness function.
| Constructor Summary | |
|---|---|
RandomFitness()
Create a new random fitness function with a default source of randomness. |
|
RandomFitness(Random random)
Create a new random fitness function with the specified source of randomness. |
|
| Method Summary | |
|---|---|
Double |
score(I individual)
Return a measure of fitness for the specified individual. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomFitness()
public RandomFitness(Random random)
random - source of randomness for this random fitness function, must not be null| Method Detail |
|---|
public Double score(I individual)
score in interface Fitness<I>individual - individual
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||