thresholds property

List<double> get thresholds

Returns the thresholds used for binning.

Implementation

List<double> get thresholds {
  final n = _range.length;
  final d0 = _domain[0];
  final d1 = _domain[1];
  final step = (d1 - d0) / n;

  return List.generate(n - 1, (i) => d0 + (i + 1) * step);
}