Skip to content

quadraticMapping

quadraticMapping(relativeAccuracy): IndexMapping

Defined in: packages/distillate/src/ddsketch/mapping.ts:461

A mapping that approximates log2 with a quadratic in the float’s significand: between linearMapping and cubicMapping in bins per accuracy. Matches sketches-java, the reference that has it.

number

Relative error bound, in (0, 1).

IndexMapping

ParamError when relativeAccuracy is outside (0, 1), or so small that no value is indexable.