csep.utils.stats.cumulative_square_diff

csep.utils.stats.cumulative_square_diff(cdf1, cdf2)[source]

given two cumulative distribution functions, compute the cumulative sq. diff of the set of distances.

Note

this function does not check that the ecdfs are ordered or balanced. beware!

Parameters:
  • cdf1 – ndarray

  • cdf2 – ndarray

Returns:

scalar distance metric for the histograms

Return type:

cum_dist