source: node_modules/d3-random/src/logNormal.js@ e4c61dd

Last change on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 425 bytes
Line 
1import defaultSource from "./defaultSource.js";
2import normal from "./normal.js";
3
4export default (function sourceRandomLogNormal(source) {
5 var N = normal.source(source);
6
7 function randomLogNormal() {
8 var randomNormal = N.apply(this, arguments);
9 return function() {
10 return Math.exp(randomNormal());
11 };
12 }
13
14 randomLogNormal.source = sourceRandomLogNormal;
15
16 return randomLogNormal;
17})(defaultSource);
Note: See TracBrowser for help on using the repository browser.