linearBuckets() function

The linearBuckets() function generates a list of linearly separated floats.

Function type: Miscellaneous
Output data type: Array of floats

linearBuckets(start: 0.0, width: 5.0, count: 20, infinity: true)

Parameters

start

The first value in the returned list.

Data type: Float

width

The distance between subsequent bucket values.

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

linearBuckets(start: 0.0, width: 10.0, count: 10)

// Generated list: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, +Inf]

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


Need help getting up and running? Get Support