sme_contrib.optimize.abs_diff

sme_contrib.optimize.abs_diff(x, y)

Absolute difference between two arrays

\(\frac{1}{2} \sum_i (x_i - y_i)^2\)

Parameters
  • x (numpy.array) – The first array

  • y (numpy.array) – The second array

Returns

absolute difference between the two arrays

Return type

float