bucketCounts property
How many observations fell in each bucket, not at-or-below it: one per bound plus the overflow, adding up to count. Empty for a non-histogram.
Implementation
List<int> get bucketCounts {
final List<double>? cumulative = _cumulative;
if (cumulative == null) return const <int>[];
final List<int> out = <int>[];
double below = 0;
for (final double atOrBelow in cumulative) {
out.add((atOrBelow - below).round());
below = atOrBelow;
}
out.add((count - below).round());
return out;
}