|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.anji.integration.RandomFitnessFunction
public class RandomFitnessFunction
Assigns random fitness for each chromosome. This can be used for, among other things, modeling genetic drift.
Constructor Summary | |
---|---|
RandomFitnessFunction()
|
Method Summary | |
---|---|
void |
evaluate(java.util.List genotypes)
Assigns random fitness for each chromosome between 1 and MAX_FITNESS
inclusive. |
int |
getMaxFitnessValue()
|
void |
init(Properties props)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomFitnessFunction()
Method Detail |
---|
public int getMaxFitnessValue()
getMaxFitnessValue
in interface BulkFitnessFunction
BulkFitnessFunction.getMaxFitnessValue()
public final void evaluate(java.util.List genotypes)
MAX_FITNESS
inclusive.
evaluate
in interface BulkFitnessFunction
genotypes
- List
contains Chromosome
objectspublic void init(Properties props) throws java.lang.Exception
init
in interface Configurable
props
- configuration parameters
java.lang.Exception
Configurable.init(com.anji.util.Properties)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |