# 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 and Y.

Both X and Y 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 and Y.

Raises
IncorrectShapeError

Either X or Y is not 2-dimensional or X and Y do not have the same number of columns.

ValueError

Either of the input arrays is not purely numerical.