Skip to content

Store

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

Counts per bin index for one sign of a sketch.

readonly total: number

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

The sum of every count added.

add(index, count): void

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

Adds count to the bin at index.

number

number

void


forEach(fn): void

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

Calls fn for every non-empty bin, in ascending index order.

(index, count) => void

void


keyAtRank(rank, descending?): number

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

The index of the bin holding the value at rank, counting from 0 in ascending index order, or descending when descending is set.

number

boolean

number


merge(other): void

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

Adds every bin of other, as adding them in ascending index order would.

Store

void