trajminer.utils.distance
.euclidean¶
-
class
trajminer.utils.distance.
euclidean
¶ Computes the euclidean distance between two objects described by an array of floats.
- xfloat or array-like
A float or an array-like object of floats.
- yfloat array-like
A float or an array-like object of floats.
- distancefloat
The euclidean distance between
x
andy
.
>>> from trajminer.utils.distance import euclidean >>> euclidean(4, 9) 5.0 >>> euclidean([4, 2], [8, 4]) 4.47213595499958
-
__init__
(**kwargs)¶ Initialize self. See help(type(self)) for accurate signature.