public final class FitnessFunctionCache extends Object implements FitnessFunction
FitnessFunction to provide caching of results.| Constructor and Description |
|---|
FitnessFunctionCache(int maxSize,
FitnessFunction fitnessFunction)
Creates a cache of the given maximum size which will contain the results of evaluating the given
FitnessFunction. |
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate(Node n)
Returns the fitness of the solution represented by the given
Node. |
public FitnessFunctionCache(int maxSize,
FitnessFunction fitnessFunction)
FitnessFunction.public double evaluate(Node n)
FitnessFunctionNode.evaluate in interface FitnessFunctionOakGP Genetic Programming Framework