Skip to content

DDSketchOptions

Defined in: packages/distillate/src/ddsketch/ddsketch.ts:302

Options for DDSketch.create.

optional mapping?: (relativeAccuracy) => IndexMapping

Defined in: packages/distillate/src/ddsketch/ddsketch.ts:310

The mapping factory that bins values. Defaults to bitwiseMapping, the mapping sketches-java’s fast sketch uses and the fastest, adding about twice as fast as the log mapping in the benchmarks; take logMapping for the fewest bins. The interpolated mappings exist to match sketches built with them by Datadog’s libraries.

number

IndexMapping


optional store?: StoreFactory

Defined in: packages/distillate/src/ddsketch/ddsketch.ts:317

The store factory that holds each sign’s bins. Defaults to collapsingLowestStore at 4096 bins, about 19 orders of magnitude at 1% with the default mapping, which bounds memory while keeping the tails accurate.