Method: Statsample::Histogram#each
- Defined in:
- lib/statsample/histogram.rb
permalink #each ⇒ Object
[View source] [View on GitHub]
134 135 136 137 138 139 140 |
# File 'lib/statsample/histogram.rb', line 134 def each bins.times.each do |i| r=get_range(i) arg={:i=>i, :low=>r[0],:high=>r[1], :middle=>(r[0]+r[1]) / 2.0, :value=>@bin[i]} yield arg end end |