Package org.robwork.sdurw_math
Class MetricUtil
- java.lang.Object
-
- org.robwork.sdurw_math.MetricUtil
-
public class MetricUtil extends java.lang.Object
Various metrics and other distance measures.
-
-
Constructor Summary
Constructors Constructor Description MetricUtil()
MetricUtil(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static double
dist2(Q a, Q b)
The 2-norm of the difference between two configurations.static double
dist2(Vector3D a, Vector3D b)
The 2-norm of the difference between two configurations.static long
getCPtr(MetricUtil obj)
static double
norm1(Q q)
The 1-norm of a configuration.static double
norm1(Quaternion q)
The 1-norm of a configuration.static float
norm1(Quaternion_f q)
The 1-norm of a configuration.static double
norm1(Vector3D q)
The 1-norm of a configuration.static float
norm1(Vector3Df q)
The 1-norm of a configuration.static double
norm2(Q q)
The 2-norm of a configuration.static double
norm2(Quaternion q)
The 2-norm of a configuration.static float
norm2(Quaternion_f q)
The 2-norm of a configuration.static double
norm2(Vector3D q)
The 2-norm of a configuration.static float
norm2(Vector3Df q)
The 2-norm of a configuration.static double
normInf(Q q)
The infinity-norm of a configuration.static double
normInf(Quaternion q)
The infinity-norm of a configuration.static float
normInf(Quaternion_f q)
The infinity-norm of a configuration.static double
normInf(Vector3D q)
The infinity-norm of a configuration.static float
normInf(Vector3Df q)
The infinity-norm of a configuration.
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(MetricUtil obj)
-
delete
public void delete()
-
norm1
public static double norm1(Vector3D q)
The 1-norm of a configuration.
-
norm1
public static float norm1(Vector3Df q)
The 1-norm of a configuration.
-
norm1
public static double norm1(Quaternion q)
The 1-norm of a configuration.
-
norm1
public static float norm1(Quaternion_f q)
The 1-norm of a configuration.
-
norm1
public static double norm1(Q q)
The 1-norm of a configuration.
-
norm2
public static double norm2(Vector3D q)
The 2-norm of a configuration.
-
norm2
public static float norm2(Vector3Df q)
The 2-norm of a configuration.
-
norm2
public static double norm2(Quaternion q)
The 2-norm of a configuration.
-
norm2
public static float norm2(Quaternion_f q)
The 2-norm of a configuration.
-
norm2
public static double norm2(Q q)
The 2-norm of a configuration.
-
normInf
public static double normInf(Vector3D q)
The infinity-norm of a configuration.
-
normInf
public static float normInf(Vector3Df q)
The infinity-norm of a configuration.
-
normInf
public static double normInf(Quaternion q)
The infinity-norm of a configuration.
-
normInf
public static float normInf(Quaternion_f q)
The infinity-norm of a configuration.
-
normInf
public static double normInf(Q q)
The infinity-norm of a configuration.
-
dist2
public static double dist2(Vector3D a, Vector3D b)
The 2-norm of the difference between two configurations.
-
-