net.sourceforge.cilib.problem.mappingproblem
Class KruskalEvaluator
java.lang.Object
net.sourceforge.cilib.problem.mappingproblem.KruskalEvaluator
- All Implemented Interfaces:
- MappingEvaluator
public class KruskalEvaluator
- extends Object
- implements MappingEvaluator
Implements the Kruskal stress function for evaluating the fitness of the MappingProblem.
- Author:
- jkroon
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KruskalEvaluator
public KruskalEvaluator()
evaluateMapping
public Fitness evaluateMapping(Matrix<Double> dist)
- Implements the evaluateMapping function as required by
NonlinearMappingProblem
.
- Specified by:
evaluateMapping
in interface MappingEvaluator
- Parameters:
dist
- The distrance matrix for the generated output vectors.
- Returns:
- the fitness as a double, wrapped inside a Fitness.
setMappingProblem
public void setMappingProblem(MappingProblem prob)
- Description copied from interface:
MappingEvaluator
- 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.
- Specified by:
setMappingProblem
in interface MappingEvaluator
- Parameters:
prob
- The instance of MappingProblem that is going to use the evaluator.
Copyright © 2009 CIRG. All Rights Reserved.