Package org.robwork.sdurw_math
Class WeightedEuclideanMetricVector2D
- java.lang.Object
-
- org.robwork.sdurw_math.MetricVector2D
-
- org.robwork.sdurw_math.WeightedEuclideanMetricVector2D
-
public class WeightedEuclideanMetricVector2D extends MetricVector2D
Weighted Euclidean 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
\sqrt{\sum_{i=1}^{n}(\omega_i * (p_i - q_i))^2} .
-
-
Constructor Summary
Constructors Constructor Description WeightedEuclideanMetricVector2D(long cPtr, boolean cMemoryOwn)
WeightedEuclideanMetricVector2D(Vector2D weights)
Weighted metric.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(WeightedEuclideanMetricVector2D obj)
-
Methods inherited from class org.robwork.sdurw_math.MetricVector2D
distance, distance, getCPtr, size
-
-
-
-
Constructor Detail
-
WeightedEuclideanMetricVector2D
public WeightedEuclideanMetricVector2D(long cPtr, boolean cMemoryOwn)
-
WeightedEuclideanMetricVector2D
public WeightedEuclideanMetricVector2D(Vector2D weights)
Weighted metric.- Parameters:
weights
- [in] Weights for the metric.
-
-
Method Detail
-
getCPtr
public static long getCPtr(WeightedEuclideanMetricVector2D obj)
-
delete
public void delete()
- Overrides:
delete
in classMetricVector2D
-
-