Skip to content

collapsingLowestStore

collapsingLowestStore(maxBins): StoreFactory

Defined in: packages/distillate/src/ddsketch/store.ts:324

A dense store that never spans more than maxBins bins. Past that it folds the lowest bins into the lowest one it keeps, giving up accuracy on the smallest magnitudes, near zero on either sign, and keeping it for the largest. The default, since the tails are what quantiles are read for.

number

The most bins kept per sign; a positive integer.

StoreFactory

ParamError when maxBins is not a positive integer.