A comparison of the discrete Kolmogorov-Smirnov statistic and the Euclidean distance