Binning data topic

Bin discrete samples into continuous, non-overlapping intervals.

Classes

Bin<T extends num?> Binning data
A bin generator for numerical data.
BinBy<T, R extends num?> Binning data
Equivalent do Bin, except that it allows for customized data processing and flexible binning based on specific attributes of the data elements.

Functions

thresholdFreedmanDiaconis<T>(Iterable<num?> values, num min, num max) int Binning data
Returns the number of bins according to the Freedman–Diaconis rule; the input values must be numbers.
thresholdScott<T>(Iterable<num?> values, num min, num max) int Binning data
Returns the number of bins according to Scott’s normal reference rule; the input values must be numbers.
thresholdSturges(Iterable<num?> values, [num? min, num? max]) int Binning data
Returns the number of bins according to Sturges’ formula; the input values must be numbers.