normalize method

Histogram<T> normalize()

Implementation

Histogram<T> normalize() {
  final total = fold<int>(0, (int v, BinCount<T> e) => v + e.count);
  return map((e) => HistBin(e.extent, e.count / total)).toList();
}