Class: MoreMath::Histogram::Bin

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#countInteger (readonly)

Returns The number of elements in this bin.

Returns:

  • (Integer)

    The number of elements in this bin



27
# File 'lib/more_math/histogram.rb', line 27

Bin = Struct.new(:left, :right, :count)

#leftFloat (readonly)

Returns The left boundary of the bin.

Returns:

  • (Float)

    The left boundary of the bin



27
# File 'lib/more_math/histogram.rb', line 27

Bin = Struct.new(:left, :right, :count)

#rightFloat (readonly)

Returns The right boundary of the bin.

Returns:

  • (Float)

    The right boundary of the bin



27
# File 'lib/more_math/histogram.rb', line 27

Bin = Struct.new(:left, :right, :count)