/** 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()); }
/** 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()); }