de.kumpe.hadooptimizer.examples.tutorial
Class PolynomialEvaluator
java.lang.Object
de.kumpe.hadooptimizer.examples.tutorial.PolynomialEvaluator
- All Implemented Interfaces:
- Evaluator<Double>, Serializable
public class PolynomialEvaluator
- extends Object
- implements Evaluator<Double>
- See Also:
- Serialized Form
Method Summary |
double |
evaluate(Double individual)
Calculates the evaluation (fitness) of the given individual . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolynomialEvaluator
public PolynomialEvaluator(double... roots)
evaluate
public double evaluate(Double individual)
- Description copied from interface:
Evaluator
- Calculates the evaluation (fitness) of the given
individual
.
A smaller value means better fitness.
- Specified by:
evaluate
in interface Evaluator<Double>
- Parameters:
individual
- the individual to calculate the evaluation (fitness)
- Returns:
- the evaluation (fitness) of the given
individual
Copyright © 2011 Christian Kumpe. All Rights Reserved.