|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.problem.mappingproblem.LinearDistanceMetric
public class LinearDistanceMetric
Represents a method for calculating the structure distance between two vectors in a MappingProblem. This specific one simply assumes that we are looking at some "linear" structure and that all input vectors logically follows on one another. This can sometimes be the case, but I don't see many situations where this will make a hell of a lot of sense...
Constructor Summary | |
---|---|
LinearDistanceMetric()
|
Method Summary | |
---|---|
double |
getDistance(int i,
int j)
Gets called by CurvilinearDistEvaluator to request the distance between two vectors to be returned. |
boolean |
getLoopStatus()
Retrieves the looping status. |
void |
setLoopStatus(boolean loopstatus)
Sets the looping status. |
void |
setMappingProblem(MappingProblem prob)
Gets called by CurvilinearDistEvaluator to indicate the precice problem to make use of. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearDistanceMetric()
Method Detail |
---|
public void setMappingProblem(MappingProblem prob)
setMappingProblem
in interface DistanceMetric
prob
- The underlying MappingProblem.public double getDistance(int i, int j)
getDistance
in interface DistanceMetric
i
- The index of the "from" vector.j
- The index of the "to" vector.
public void setLoopStatus(boolean loopstatus)
loopstatus
- What the loopstatus should be (true/false).public boolean getLoopStatus()
setLoopStatus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |