Ejemplo n.º 1
0
 /** Uses inversion to generate a new JohnsonSL variate, using stream `s`. */
 public static double nextDouble(
     RandomStream s, double gamma, double delta, double xi, double lambda) {
   return JohnsonSLDist.inverseF(gamma, delta, xi, lambda, s.nextDouble());
 }
Ejemplo n.º 2
0
 /** Creates a new generator for the JohnsonSL distribution `dist`, using stream `s`. */
 public JohnsonSLGen(RandomStream s, JohnsonSLDist dist) {
   super(s, dist);
   if (dist != null) setParams(dist.getGamma(), dist.getDelta(), dist.getXi(), dist.getLambda());
 }