Method: Math#stddev_population
- Defined in:
- lib/openc3/core_ext/math.rb
#stddev_population(array) ⇒ Float
Calculates the standard deviation of the population variation by taking the square root of the population variance.
88 89 90 91 |
# File 'lib/openc3/core_ext/math.rb', line 88 def stddev_population(array) mean, variance = self.variance_population(array) return [mean, Math.sqrt(variance)] end |