Class: MoreMath::Histogram::Bin
- Defined in:
- lib/more_math/histogram.rb
Overview
Represents a single bin in a histogram with left boundary, right boundary, and count.
Instance Attribute Summary collapse
-
#count ⇒ Integer
readonly
The number of elements in this bin.
-
#left ⇒ Float
readonly
The left boundary of the bin.
-
#right ⇒ Float
readonly
The right boundary of the bin.
Instance Attribute Details
#count ⇒ Integer (readonly)
Returns The number of elements in this bin.
27 |
# File 'lib/more_math/histogram.rb', line 27 Bin = Struct.new(:left, :right, :count) |
#left ⇒ Float (readonly)
Returns The left boundary of the bin.
27 |
# File 'lib/more_math/histogram.rb', line 27 Bin = Struct.new(:left, :right, :count) |
#right ⇒ Float (readonly)
Returns The right boundary of the bin.
27 |
# File 'lib/more_math/histogram.rb', line 27 Bin = Struct.new(:left, :right, :count) |