16 lines
405 B
JavaScript
16 lines
405 B
JavaScript
import defaultSource from "./defaultSource";
|
|
import normal from "./normal";
|
|
|
|
export default (function sourceRandomLogNormal(source) {
|
|
function randomLogNormal() {
|
|
var randomNormal = normal.source(source).apply(this, arguments);
|
|
return function() {
|
|
return Math.exp(randomNormal());
|
|
};
|
|
}
|
|
|
|
randomLogNormal.source = sourceRandomLogNormal;
|
|
|
|
return randomLogNormal;
|
|
})(defaultSource);
|