Method: Eps::Statistics.normal_cdf
- Defined in:
- lib/eps/statistics.rb
.normal_cdf(x, mean, std_dev) ⇒ Object
3 4 5 |
# File 'lib/eps/statistics.rb', line 3 def self.normal_cdf(x, mean, std_dev) 0.5 * (1.0 + Math.erf((x - mean) / (std_dev * Math.sqrt(2)))) end |