SparseHistogramResult
@Serializable
@SerialName(value = "SparseHistogramResult")
Histogram as parallel [lowerBounds, upperBounds) bucket arrays with weights.
Properties
Functions
Link copied to clipboard
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.
Link copied to clipboard
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.
SparseHistogramResult
lowerBounds
Inclusive lower bound of each bucket; parallel to upperBounds and weights.
upperBounds
Exclusive upper bound of each bucket; parallel to lowerBounds and weights.
weights
Observed weight per bucket; parallel to lowerBounds / upperBounds.