fatf.utils.distances
.euclidean_array_distance¶
-
fatf.utils.distances.
euclidean_array_distance
(X: numpy.ndarray, Y: numpy.ndarray) → numpy.ndarray[source]¶ Calculates the Euclidean distance matrix between rows in
X
andY
.Both
X
andY
have to be 2-dimensional numerical numpy arrays of the same width.- Parameters
- Xnumpy.ndarray
A numpy array – has to be 2-dimensional and purely numerical.
- Ynumpy.ndarray
A numpy array – has to be 2-dimensional and purely numerical.
- Returns
- distance_matrixnumpy.ndarray
An matrix of Euclidean distances between rows in
X
andY
.
- Raises
- IncorrectShapeError
Either
X
orY
is not 2-dimensional orX
andY
do not have the same number of columns.- ValueError
Either of the input arrays is not purely numerical.