Class: Spout::Helpers::ArrayStatistics

Inherits:
Object
  • Object
show all
Defined in:
lib/spout/helpers/array_statistics.rb

Class Method Summary collapse

Class Method Details

.calculationsObject



118
119
120
121
122
123
124
125
126
# File 'lib/spout/helpers/array_statistics.rb', line 118

def self.calculations
  [["N", :n, :count],
   ["Mean", :mean, :decimal],
   ["StdDev", :standard_deviation, :decimal, "± %s"],
   ["Median", :median, :decimal],
   ["Min", :compact_min, :decimal],
   ["Max", :compact_max, :decimal],
   ["Unknown", :unknown, :count]]
end