Sha256: a4a35e3f26748a39884f263e1c5a87f747f0dd9161b97d4f0ed5f53a9479e1b9

Contents?: true

Size: 499 Bytes

Versions: 52

Compression:

Stored size: 499 Bytes

Contents

module Bmg
  class Summarizer
    #
    # Standard deviation summarizer
    #
    # Example:
    #
    #   # direct ruby usage
    #   Bmg::Summarizer.stddev(:qty).summarize(...)
    #
    class Stddev < Variance

      # Finalizes the computation.
      def finalize(memo) 
        Math.sqrt(super(memo))
      end

    end # class Stddev

    # Factors a standard deviation summarizer
    def self.stddev(*args, &bl)
      Stddev.new(*args, &bl)
    end

  end # class Summarizer
end # module Bmg

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
bmg-0.23.3 lib/bmg/summarizer/stddev.rb
bmg-0.23.2 lib/bmg/summarizer/stddev.rb
bmg-0.23.1 lib/bmg/summarizer/stddev.rb
bmg-0.23.0 lib/bmg/summarizer/stddev.rb
bmg-0.21.5 lib/bmg/summarizer/stddev.rb
bmg-0.21.4 lib/bmg/summarizer/stddev.rb
bmg-0.20.5 lib/bmg/summarizer/stddev.rb
bmg-0.19.3 lib/bmg/summarizer/stddev.rb
bmg-0.21.3 lib/bmg/summarizer/stddev.rb
bmg-0.21.2 lib/bmg/summarizer/stddev.rb
bmg-0.21.0 lib/bmg/summarizer/stddev.rb
bmg-0.20.4 lib/bmg/summarizer/stddev.rb
bmg-0.20.2 lib/bmg/summarizer/stddev.rb
bmg-0.20.1 lib/bmg/summarizer/stddev.rb
bmg-0.20.0 lib/bmg/summarizer/stddev.rb
bmg-0.19.2 lib/bmg/summarizer/stddev.rb
bmg-0.19.1 lib/bmg/summarizer/stddev.rb
bmg-0.19.0 lib/bmg/summarizer/stddev.rb
bmg-0.18.15 lib/bmg/summarizer/stddev.rb
bmg-0.18.14 lib/bmg/summarizer/stddev.rb