/** * Creates a normal random variate generator with mean `mu` and standard deviation `sigma`, using * stream `s`. */ public NormalGen(RandomStream s, double mu, double sigma) { super(s, new NormalDist(mu, sigma)); setParams(mu, sigma); }
/** Creates a random variate generator for the normal distribution `dist` and stream `s`. */ public NormalGen(RandomStream s, NormalDist dist) { super(s, dist); if (dist != null) setParams(dist.getMu(), dist.getSigma()); }