/** * Returns a random number from the distribution with the given mean. */ public static int staticNextInt(double mean) { synchronized (shared) { shared.setMean(mean); return shared.nextInt(); } }
/** * Constructs a poisson distribution. Example: mean=1.0. */ public Poisson(double mean, DoubleRandomEngine randomGenerator) { setRandomGenerator(randomGenerator); setMean(mean); }
/** * Constructs a poisson distribution. Example: mean=1.0. */ public Poisson(double mean, DoubleRandomEngine randomGenerator) { setRandomGenerator(randomGenerator); setMean(mean); }
/** * Returns a random number from the distribution with the given mean. */ public static int staticNextInt(double mean) { synchronized (shared) { shared.setMean(mean); return shared.nextInt(); } }