pose_format.numpy.representation.distance module
Classes:
A class to compute the Euclidean distance between two sets of points. |
- class pose_format.numpy.representation.distance.DistanceRepresentation[source]
Bases:
objectA class to compute the Euclidean distance between two sets of points.
Methods:
distance(p1s, p2s)Compute the Euclidean distance between two sets of points.
- distance(p1s, p2s)[source]
Compute the Euclidean distance between two sets of points.
- Parameters:
p1s (ma.MaskedArray) – First set of points.
p2s (ma.MaskedArray) – Second set of points.
- Returns:
Euclidean distances between the two sets of points. The returned array has one fewer dimension than the input arrays, as the distance calculation collapses the last dimension.
- Return type:
ma.MaskedArray
Note
this method assumes that input arrays
p1sandp2shave same shape.