|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.problem.mappingproblem.CurvilinearDistEvaluator
public class CurvilinearDistEvaluator
Implements the Curvilinear Distance function for evaluating the fitness of the Mapping problem. (@see MappingProblem}
Constructor Summary | |
---|---|
CurvilinearDistEvaluator()
|
Method Summary | |
---|---|
Fitness |
evaluateMapping(Matrix<Double> d)
Implements the evaluateMapping function as required by. |
protected double |
f(double o)
The function F. |
DistanceMetric |
getDistanceMetric()
Can be used to retrieve the DistanceMetric to use. |
void |
setDistanceMetric(DistanceMetric distanceMetric)
Called by XML factory to set the DistranceMetric to use. |
void |
setMappingProblem(MappingProblem prob)
Called by MappingProblem.setEvaluator in order to establisg bi-directional communication. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurvilinearDistEvaluator()
Method Detail |
---|
public Fitness evaluateMapping(Matrix<Double> d)
evaluateMapping
in interface MappingEvaluator
d
- The distrance matrix for the generated output vectors.
protected double f(double o)
o
- The value to apply the function to.
public void setMappingProblem(MappingProblem prob)
setMappingProblem
in interface MappingEvaluator
prob
- The instance of MappingProblem that is going use us.public void setDistanceMetric(DistanceMetric distanceMetric)
distanceMetric
- The DistanceMetric to usepublic DistanceMetric getDistanceMetric()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |