Class: Bmg::Summarizer::Stddev

Inherits:
Variance show all
Defined in:
lib/bmg/summarizer/stddev.rb

Overview

Standard deviation summarizer

Example:

# direct ruby usage
Bmg::Summarizer.stddev(:qty).summarize(...)

Instance Attribute Summary

Attributes inherited from Bmg::Summarizer

#functor, #options

Instance Method Summary collapse

Methods inherited from Variance

#_happens, #least

Methods inherited from Bmg::Summarizer

avg, bucketize, by_proc, collect, concat, count, distinct, distinct_count, first, #happens, #initialize, last, #least, max, median, median_cont, median_disc, min, multiple, percentile, percentile_cont, percentile_disc, stddev, sum, summarization, #summarize, #to_summarizer_name, value_by, variance

Constructor Details

This class inherits a constructor from Bmg::Summarizer

Instance Method Details

#finalize(memo) ⇒ Object

Finalizes the computation.



14
15
16
# File 'lib/bmg/summarizer/stddev.rb', line 14

def finalize(memo) 
  Math.sqrt(super(memo))
end