(value, mean, stdev)
| 87047 | } |
| 87048 | |
| 87049 | function densityNormal(value, mean, stdev) { |
| 87050 | stdev = stdev == null ? 1 : stdev; |
| 87051 | const z = (value - (mean || 0)) / stdev; |
| 87052 | return Math.exp(-0.5 * z * z) / (stdev * _constants.SQRT2PI); |
| 87053 | } // Approximation from West (2009) |
| 87054 | // Better Approximations to Cumulative Normal Functions |
| 87055 | |
| 87056 |