Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// ------------------------------------------------------------
// randomNormal
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomNormal();
randomNumberGenerator = d3Random.randomNormal(3);
randomNumberGenerator = d3Random.randomNormal(3, 4);
// ------------------------------------------------------------
// randomLogNormal
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomLogNormal();
randomNumberGenerator = d3Random.randomLogNormal(3);
randomNumberGenerator = d3Random.randomLogNormal(3, 4);
// ------------------------------------------------------------
// randomBates
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomBates(3);
// ------------------------------------------------------------
// randomIrwinHall
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomIrwinHall(3);
// ------------------------------------------------------------
// randomExponential
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomUniform(0.2, 5);
// ------------------------------------------------------------
// randomNormal
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomNormal();
randomNumberGenerator = d3Random.randomNormal(3);
randomNumberGenerator = d3Random.randomNormal(3, 4);
// ------------------------------------------------------------
// randomLogNormal
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomLogNormal();
randomNumberGenerator = d3Random.randomLogNormal(3);
randomNumberGenerator = d3Random.randomLogNormal(3, 4);
// ------------------------------------------------------------
// randomBates
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomBates(3);
// ------------------------------------------------------------
// randomIrwinHall
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomIrwinHall(3);
// ------------------------------------------------------------
// randomExponential
randomNumberGenerator = d3Random.randomUniform(0.2);
randomNumberGenerator = d3Random.randomUniform(0.2, 5);
// ------------------------------------------------------------
// randomNormal
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomNormal();
randomNumberGenerator = d3Random.randomNormal(3);
randomNumberGenerator = d3Random.randomNormal(3, 4);
// ------------------------------------------------------------
// randomLogNormal
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomLogNormal();
randomNumberGenerator = d3Random.randomLogNormal(3);
randomNumberGenerator = d3Random.randomLogNormal(3, 4);
// ------------------------------------------------------------
// randomBates
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomBates(3);
// ------------------------------------------------------------
// randomIrwinHall
// ------------------------------------------------------------
randomNumberGenerator = d3Random.randomIrwinHall(3);
// ------------------------------------------------------------
stddevs.forEach(std => {
const normalGen = randomNormal(mu, std);
const logNormalGen = randomLogNormal(mu, std);
normal[mu].push(range(n).map(normalGen));
logNormal[mu].push(range(n).map(logNormalGen));
});
});