Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Base2Exponent

import type { Base2Exponent } from "https://googleapis.deno.dev/v1/dataflow:v1b3.ts";

Exponential buckets where the growth factor between buckets is 2**(2**-scale). e.g. for scale=1 growth factor is 2**(2**(-1))=sqrt(2). n buckets will have the following boundaries. - 0th: [0, gf) - i in [1, n-1]: [gf^(i), gf^(i+1))

interface Base2Exponent {
numberOfBuckets?: number;
scale?: number;
}

§Properties

§
numberOfBuckets?: number
[src]

Must be greater than 0.

§
scale?: number
[src]

Must be between -3 and 3. This forces the growth factor of the bucket boundaries to be between 2^(1/8) and 256.