intervals property

int intervals

Returns the optimal number of intervals. The interval size is estimated using the Freedman-Diaconis rule.

Implementation

int get intervals => math.max((max - min) ~/ intervalSize, 3);