csep.utils.stats.sup_dist_na

csep.utils.stats.sup_dist_na(data1, data2)[source]

computes the ks statistic for two ecdfs that are not necessarily aligned on the same values. performs this operation by merging the two datasets together. this is taken from the 2sample ks test in the scipy codebase

Parameters:
  • data1 – (numpy array like)

  • data2 – (numpy array like)

Returns:

sup dist from the two cdf functions

Return type:

ks