MCPcopy Create free account
hub / github.com/microsoft/SandDance / densityNormal

Function densityNormal

docs/tests/v2/es6/js/sanddance.js:87049–87053  ·  view source on GitHub ↗
(value, mean, stdev)

Source from the content-addressed store, hash-verified

87047}
87048
87049function 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

Callers 1

_defaultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected