Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /** 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());
 }