|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.swarm.fitness.RandomFitness
public final class RandomFitness
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(double[] position)
Return a measure of fitness for the specified position. |
| 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 funtion, must not be null| Method Detail |
|---|
public double score(double[] position)
score in interface Fitnessposition - position
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||