de.kumpe.hadooptimizer.impl
Class EsEvaluatorWrapper
java.lang.Object
de.kumpe.hadooptimizer.impl.NeedsRandomWrapperBase<Evaluator<double[]>>
de.kumpe.hadooptimizer.impl.EsEvaluatorWrapper
- All Implemented Interfaces:
- Evaluator<EsIndividual>, NeedsRandomGenerator, Wrapper<Evaluator<double[]>>, Serializable
public final class EsEvaluatorWrapper
- extends NeedsRandomWrapperBase<Evaluator<double[]>>
- implements Evaluator<EsIndividual>
Wrapp's a given Evaluator<double[]> to evaluate the
double[]-individual nested in an EsIndividual.
- Author:
- Christian Kumpe
- See Also:
- Serialized Form
|
Method Summary |
double |
evaluate(EsIndividual individual)
Calculates the evaluation (fitness) of the given individual. |
EsEvaluatorWrapper
public EsEvaluatorWrapper(Evaluator<double[]> delegate)
- Creates a new
EsEvaluatorWrapper wrapping the specified
Evaluator<double[]>.
- Parameters:
delegate - an Evaluator<double[]> to wrap
evaluate
public double evaluate(EsIndividual 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<EsIndividual>
- Parameters:
individual - the individual to calculate the evaluation (fitness)
- Returns:
- the evaluation (fitness) of the given
individual
Copyright © 2011 Christian Kumpe. All Rights Reserved.