Skip to content

cubicMapping

cubicMapping(relativeAccuracy): IndexMapping

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

A mapping that approximates log2 with a cubic in the float’s significand: nearly as compact as logMapping. For matching sketches built with it elsewhere; in V8 it adds slower than the log mapping, Math.log being cheap.

number

Relative error bound, in (0, 1).

IndexMapping

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