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.17.2 lib/bmg/summarizer/stddev.rb
bmg-0.16.7 lib/bmg/summarizer/stddev.rb
bmg-0.17.1 lib/bmg/summarizer/stddev.rb
bmg-0.17.0 lib/bmg/summarizer/stddev.rb
bmg-0.16.6 lib/bmg/summarizer/stddev.rb
bmg-0.16.5 lib/bmg/summarizer/stddev.rb
bmg-0.16.4 lib/bmg/summarizer/stddev.rb
bmg-0.16.3 lib/bmg/summarizer/stddev.rb
bmg-0.16.2 lib/bmg/summarizer/stddev.rb
bmg-0.16.1 lib/bmg/summarizer/stddev.rb
bmg-0.16.0 lib/bmg/summarizer/stddev.rb
bmg-0.16.0.pre.rc2 lib/bmg/summarizer/stddev.rb