Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Buckets

Index

Constructors

  • new Buckets(backing?: BucketsBacking, indexBase?: number, indexStart?: number, indexEnd?: number): Buckets
  • The term index refers to the number of the exponential histogram bucket used to determine its boundaries. The lower boundary of a bucket is determined by base ** index and the upper boundary of a bucket is determined by base ** (index + 1). index values are signed to account for values less than or equal to 1.

    indexBase is the index of the 0th position in the backing array, i.e., backing[0] is the count in the bucket with index indexBase.

    indexStart is the smallest index value represented in the backing array.

    indexEnd is the largest index value represented in the backing array.

    Parameters

    • backing: BucketsBacking = ...
    • indexBase: number = 0
    • indexStart: number = 0
    • indexEnd: number = 0

    Returns Buckets

Properties

backing: BucketsBacking = ...
indexBase: number = 0
indexEnd: number = 0
indexStart: number = 0

Accessors

  • get length(): number
  • get offset(): number

Methods

  • at(position: number): number
  • counts(): number[]
  • decrementBucket(bucketIndex: number, decrement: number): void
  • downscale(by: number): void
  • incrementBucket(bucketIndex: number, increment: number): void
  • trim(): void

Generated using TypeDoc