|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.swarm.fitness.UniformFitness
public final class UniformFitness
Uniform fitness function.
| Field Summary | |
|---|---|
(package private) static double |
DEFAULT_SCORE
Default score. |
| Constructor Summary | |
|---|---|
UniformFitness()
Create a new uniform fitness function with the default score of 1.0d. |
|
UniformFitness(double score)
Create a new uniform fitness function with the specified score. |
|
| 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 |
| Field Detail |
|---|
static final double DEFAULT_SCORE
| Constructor Detail |
|---|
public UniformFitness()
1.0d.
public UniformFitness(double score)
score - score for this uniform fitness function| 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 | |||||||||