class MoreMath::Histogram
def prepare_display(width)
edge. +width+ is usually an integer number representing the width of a
the +width+-normalized frequence count value, and +r+ the right bin
Returns an array of tuples (l, c, r) where +l+ is the left bin edge, +c+
def prepare_display(width) factor = width.to_f / max_count @result.reverse_each.map { |bin| [ bin.left, (bin.count * factor).round, bin.right ] } end