Module quantiles::histogram [] [src]

'histogram' approximates a distribution calculation by counting the number of times samples fall into pre-configured bins. This implementation does not require bins to be equally sized. The user must specify upper bounds on bins via Bounds. The implementation includes a +Inf bound automatically.

Storage cost is proportional to the number of bins. The implementation is biased in favor of writes.

Structs

Histogram

A binning histogram of unequal, pre-defined bins

Iter

Struct to implement Iterator over Histogram

Enums

Bound

The upper bound for each Histogram bins. The user is responsible for determining effective bins for their use-case.

Error

Construction errors