|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.util.MinkowskiMetric net.sourceforge.cilib.util.ChebyshevDistanceMeasure
public class ChebyshevDistanceMeasure
Chebyshev Distance is a special case of the
Minkowski Metric
with 'alpha' := infinity. It
calculates the distance between to vectors as the largest coordinate difference between both
vectors.
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.util.MinkowskiMetric |
---|
alpha |
Constructor Summary | |
---|---|
ChebyshevDistanceMeasure()
Create an instance of the ChebyshevDistanceMeasure. |
Method Summary | ||
---|---|---|
|
distance(T x,
T y)
Calculate the distance between two vectors represented by Java Collection objects. |
|
|
distance(U x,
U y)
Calculate the distance between two vectors. |
|
void |
setAlpha(int a)
Set the 'alpha' value that will be used in the calculation of the Minkowski Metric. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChebyshevDistanceMeasure()
Method Detail |
---|
public <T extends Type,U extends StructuredType<T>> double distance(U x, U y)
distance
in interface DistanceMeasure
distance
in class MinkowskiMetric
x
- the one vector.y
- the other vector.
public <T extends Collection<? extends Number>> double distance(T x, T y)
distance
in interface DistanceMeasure
distance
in class MinkowskiMetric
T
- The Collection type.x
- the one Java Collection object.y
- the other Java Collection object.
public void setAlpha(int a)
setAlpha
in class MinkowskiMetric
a
- the new 'alpha' value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |