Module: Diagnostics::Sample::Controls::StandardDeviation::Values

Extended by:
Values
Included in:
Result, Result::Digest, Values
Defined in:
lib/diagnostics/sample/controls/standard_deviation.rb

Overview

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exampleObject



9
10
11
# File 'lib/diagnostics/sample/controls/standard_deviation.rb', line 9

def self.example
  values
end

Instance Method Details

#countObject



17
18
19
# File 'lib/diagnostics/sample/controls/standard_deviation.rb', line 17

def count
  values.count
end

#frequencyObject



29
30
31
# File 'lib/diagnostics/sample/controls/standard_deviation.rb', line 29

def frequency
  200
end

#meanObject



25
26
27
# File 'lib/diagnostics/sample/controls/standard_deviation.rb', line 25

def mean
  5
end

#sumObject



21
22
23
# File 'lib/diagnostics/sample/controls/standard_deviation.rb', line 21

def sum
  40
end

#valuesObject



13
14
15
# File 'lib/diagnostics/sample/controls/standard_deviation.rb', line 13

def values
  [2, 4, 4, 4, 5, 5, 7, 9]
end