h2-histogram

1.1.1 • Public • Published

The H2Histogram provides a histogram that is conceptually similar to HdrHistogram but with base-2 buckets, which makes it noticeably faster. This introduces small modifications to the configurable options as well.

This module is a pure Javascript implementation of the algorithm, which is described at h2histogram.org.

H2Encoding encodes values from the integer range [0, 2^n) into base-2 logarithmic bins with a controllable relative error bound.

The number of bins must be less than 2^32, and the largest encodable value must be less than 2^53.

The histogram is designed to encode integer values only.

Readme

Keywords

none

Package Sidebar

Install

npm i h2-histogram

Weekly Downloads

4

Version

1.1.1

License

ISC

Unpacked Size

61.8 kB

Total Files

12

Last publish

Collaborators

  • thinkingfish
  • yurivish