kumulant

SparseHistogramResult

@Serializable
@SerialName(value = "SparseHistogramResult")
data class SparseHistogramResult(val lowerBounds: DoubleArray, val upperBounds: DoubleArray, val weights: DoubleArray) : Result(source)

Histogram as parallel [lowerBounds, upperBounds) bucket arrays with weights.

Constructors

Link copied to clipboard
constructor(lowerBounds: DoubleArray, upperBounds: DoubleArray, weights: DoubleArray)

Properties

Link copied to clipboard

Inclusive lower bound of each bucket; parallel to upperBounds and weights.

Link copied to clipboard

Exclusive upper bound of each bucket; parallel to lowerBounds and weights.

Link copied to clipboard

Observed weight per bucket; parallel to lowerBounds / upperBounds.

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

constructor(lowerBounds: DoubleArray, upperBounds: DoubleArray, weights: DoubleArray)(source)

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.