linearBins() function generates a list of linearly separated floats.
It is a helper function meant to generate bin bounds for the
Output data type: Array of floats
linearBins( start: 0.0, width: 5.0, count: 20, infinity: true, )
The first value in the returned list.
The distance between subsequent bin values.
The number of bins to create.
true, adds an additional bin with a value of positive infinity.
linearBins(start: 0.0, width: 10.0, count: 10) // Generated list: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, +Inf]
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.