net.sourceforge.cilib.problem.mappingproblem
Class CurvilinearCompEvaluator

java.lang.Object
  extended by net.sourceforge.cilib.problem.mappingproblem.CurvilinearCompEvaluator
All Implemented Interfaces:
MappingEvaluator

public class CurvilinearCompEvaluator
extends Object
implements MappingEvaluator

Implements the Curvilinear Component function for evaluating the fitness of the Mapping problem. (@see MappingProblem}

Author:
jkroon

Constructor Summary
CurvilinearCompEvaluator()
           
 
Method Summary
 Fitness evaluateMapping(Matrix<Double> dist)
          Implements the evaluateMapping function as required by.
protected  double f(double o)
          The function F.
 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

CurvilinearCompEvaluator

public CurvilinearCompEvaluator()
Method Detail

evaluateMapping

public Fitness evaluateMapping(Matrix<Double> dist)
Implements the evaluateMapping function as required by.

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.

f

protected double f(double o)
The function F. Well, that is at least the name in the assignment that I'm working on. The only description I've got of this is "Where F is a decreasing function of oij." This is probably another candidate for subclassing.

Parameters:
o - The value to apply the function to.
Returns:
A value that decreases as o increases, never reaching 0.

setMappingProblem

public void setMappingProblem(MappingProblem prob)
Called by MappingProblem.setEvaluator in order to establisg bi-directional communication.

Specified by:
setMappingProblem in interface MappingEvaluator
Parameters:
prob - The instance of MappingProblem that is going use us.


Copyright © 2009 CIRG. All Rights Reserved.