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) r = @result.reverse factor = width.to_f / (r.transpose[1].max) r.map { |l, c, r| [ l, (c * factor).round, r ] } end