MCPcopy Create free account
hub / github.com/breck7/scroll / randomLogistic

Function randomLogistic

external/.d3.js:14724–14731  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

14722
14723var logistic = (function sourceRandomLogistic(source) {
14724 function randomLogistic(a, b) {
14725 a = a == null ? 0 : +a;
14726 b = b == null ? 1 : +b;
14727 return function() {
14728 var u = source();
14729 return a + b * Math.log(u / (1 - u));
14730 };
14731 }
14732
14733 randomLogistic.source = sourceRandomLogistic;
14734

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected