Package org.robwork.sdurw_math
Class WeightedInfinityMetricQ
- java.lang.Object
-
- org.robwork.sdurw_math.MetricQ
-
- org.robwork.sdurw_math.WeightedInfinityMetricQ
-
public class WeightedInfinityMetricQ extends MetricQ
Weighted infinity norm metric for vector types.
Given a vector of weights \mathbf{\omega}\in\mathbb{R}^n, the
distance between two points
P = (p_1, p_2, ..., p_n)
and
Q = (q_1, q_2, ..., q_n)
is defined as
max_i |\omega_i * (p_i - q_i)|
-
-
Constructor Summary
Constructors Constructor Description WeightedInfinityMetricQ(long cPtr, boolean cMemoryOwn)
WeightedInfinityMetricQ(Q weights)
Weighted metric.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(WeightedInfinityMetricQ obj)
-
-
-
Constructor Detail
-
WeightedInfinityMetricQ
public WeightedInfinityMetricQ(long cPtr, boolean cMemoryOwn)
-
WeightedInfinityMetricQ
public WeightedInfinityMetricQ(Q weights)
Weighted metric.- Parameters:
weights
- [in] Weights for the metric.
-
-
Method Detail
-
getCPtr
public static long getCPtr(WeightedInfinityMetricQ obj)
-
-