pitChiSquared
Pearson chi-squared statistic for uniformity on [0, 1]. Compares the empirical bin counts against the uniform expectation total / numBins and sums (observed - expected)^2 / expected over all numBins bins.
The histogram is the sparse output of pitHistogram(numBins) (or any equal-width LinearHistogramStat over [0, 1]); pass the same numBins used to configure it so empty bins are accounted for. Underflow / overflow rows are excluded - observations outside [0, 1] shouldn't count toward a uniformity test on [0, 1]. Returns 0 if total finite weight is non-positive.
pitKsDistance
Kolmogorov-Smirnov statistic against the uniform distribution on [0, 1]. Walks every bin (including empty ones) and returns the supremum of |empCdf(x) - x| evaluated at bin upper boundaries.
Pass the same numBins used to configure pitHistogram(numBins). Underflow / overflow rows are excluded. Returns 0 when total finite weight is non-positive.