Package org.robwork.sdurw_math
Class ManhattanMetricVector3D
- java.lang.Object
-
- org.robwork.sdurw_math.MetricVector3D
-
- org.robwork.sdurw_math.ManhattanMetricVector3D
-
public class ManhattanMetricVector3D extends MetricVector3D
Manhattan distance metric for vector types.
The ManhattanMetric, also known as the taxicab metric or the 1-norm, is a
metric on the Euclidean n-Plane. The Manhattan distance between two
points
P = (p_1, p_2, ..., p_n)
and
Q = (q_1, q_2, ..., q_n)
is defined as
\sum_{i=1}^{n} |p_i - q_i|
-
-
Constructor Summary
Constructors Constructor Description ManhattanMetricVector3D()
ManhattanMetricVector3D(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(ManhattanMetricVector3D obj)
-
Methods inherited from class org.robwork.sdurw_math.MetricVector3D
distance, distance, getCPtr, size
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(ManhattanMetricVector3D obj)
-
delete
public void delete()
- Overrides:
delete
in classMetricVector3D
-
-