commpy.utilities.euclid_dist

euclid_dist(in_array1, in_array2)

Computes the squared euclidean distance between two NumPy arrays

Parameters:
  • in_array1 (1D ndarray of floats) – NumPy array of real values.
  • in_array2 (1D ndarray of floats) – NumPy array of real values.
Returns:

distance – Squared Euclidean distance between two input arrays.

Return type:

float