Skip to content

flatFrequencyTable(capacity): FrequencyTable

Defined in: packages/frequency-table/src/flat-frequency-table.ts:43

Create an empty flat histogram using four bytes per key. Count and add take O(1). Sums scan the requested range. Selection, initialization, and clearing take O(capacity) in the worst case.

number

FrequencyTable

INVALID_CAPACITY unless capacity is an integer in [0, 2^31 - 1].