public class Comparison extends Object
| Constructor and Description |
|---|
Comparison() |
| Modifier and Type | Method and Description |
|---|---|
static double |
compareChi2(Histogram dist1,
Histogram dist2)
Use a log-likelihood ratio test to compare two distributions.
|
static double |
compareChi2(TDigest dist1,
TDigest dist2,
double[] qCuts)
Use a log-likelihood ratio test to compare two distributions.
|
static double |
ks(TDigest d1,
TDigest d2)
Returns the observed value of the Kolmogorov-Smirnov statistic normalized by sample counts so
that the score should be roughly distributed as sqrt(-log(u)/2).
|
static double |
llr(double[][] count) |
public static double compareChi2(TDigest dist1, TDigest dist2, double[] qCuts)
dist1 - First distribution (usually the reference)dist2 - Second distribution to compare (usually the test case)qCuts - The quantiles that define the bin boundaries. Values ≤0 or ≥1
may result in zero counts. Note that the actual cuts are
defined loosely as dist1.quantile(qCuts[i]).
public static double compareChi2(Histogram dist1, Histogram dist2)
dist1 - First distribution (usually the reference)dist2 - Second distribution to compare (usually the test case)public static double llr(double[][] count)
public static double ks(TDigest d1, TDigest d2)
d1 - A digest of the first set of samples.d2 - A digest of the second set of samples.Copyright © 2021. All rights reserved.