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

Function sampleLogNormal

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

Source from the content-addressed store, hash-verified

87294var _constants = require("./constants");
87295
87296function sampleLogNormal(mean, stdev) {
87297 mean = mean || 0;
87298 stdev = stdev == null ? 1 : stdev;
87299 return Math.exp(mean + (0, _normal.sampleNormal)() * stdev);
87300}
87301
87302function densityLogNormal(value, mean, stdev) {
87303 if (value <= 0) return 0;

Callers 1

_defaultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected