logarithmicBuckets() function

The logarithmicBuckets() function generates a list of exponentially separated floats.

Function type: Miscellaneous
Output data type: Array of floats

logarithmicBuckets(start:1.0, factor: 2.0, count: 10, infinity: true)

Parameters

start

The first value in the returned bucket list.

Data type: Float

factor

The multiplier applied to each subsequent bucket.

Data type: Float

count

The number of buckets to create.

Data type: Integer

infinity

When true, adds an additional bucket with a value of positive infinity. Defaults to true.

Data type: Boolean

Examples

logarithmicBuckets(start: 1.0, factor: 2.0, count: 10, infinty: true)

// Generated list: [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, +Inf]

This documentation is open source. See a typo? Please, open an issue.


Need help getting up and running? Get Support