net.sourceforge.cilib.problem.mappingproblem
Interface MappingEvaluator

All Known Implementing Classes:
CurvilinearCompEvaluator, CurvilinearDistEvaluator, KruskalEvaluator

public interface MappingEvaluator

Class that actually evaluates a given Mapping. This is to allow using the same evaluator for different mapping mechanisms in an easy manner.

Author:
jkroon

Method Summary
 Fitness evaluateMapping(Matrix<Double> dist)
          Get called in order to perform an evaluation.
 void setMappingProblem(MappingProblem prob)
          Gets called when attached to a MappingProblem.
 

Method Detail

evaluateMapping

Fitness evaluateMapping(Matrix<Double> dist)
Get called in order to perform an evaluation.

Parameters:
dist - The distance matrix for the output vectors.
Returns:
An instance of Fitness indicating the Fitness of this mapping.

setMappingProblem

void setMappingProblem(MappingProblem prob)
Gets called when attached to a MappingProblem. This is to allow one to call back to the problem in order to find additional info, such as the distance between vectors in the input.

Parameters:
prob - The instance of MappingProblem that is going to use the evaluator.


Copyright © 2009 CIRG. All Rights Reserved.