sdr.euclidean(x: ArrayLike, y: ArrayLike, axis: int | tuple[int, ...] | None = None) NDArray[float64]

Measures the Euclidean distance between two signals \(x[n]\) and \(y[n]\).

\[d = \sqrt{\sum_{n=0}^{N-1} \left| x[n] - y[n] \right|^2}\]

Parameters:
x: ArrayLike

The time-domain signal \(x[n]\).

y: ArrayLike

The time-domain signal \(y[n]\).

axis: int | tuple[int, ...] | None = None

Axis or axes along which to compute the distance. The default is None, which computes the distance across the entire array.

Returns:

The Euclidean distance between \(x[n]\) and \(y[n]\).