/** * Returns a random number from the distribution. */ public double nextDouble() { return nextDouble(mean, gamma, cut); }
/** * Constructs a BreitWigner distribution. * * @param cut * </tt>cut==Double.NEGATIVE_INFINITY</tt> indicates "don't cut". */ public BreitWigner(double mean, double gamma, double cut, DoubleRandomEngine randomGenerator) { setRandomGenerator(randomGenerator); setState(mean, gamma, cut); }
/** * Sets the uniform random number generated shared by all <b>static</b> * methods. * * @param randomGenerator * the new uniform random number generator to be shared. */ private static void xstaticSetRandomGenerator(DoubleRandomEngine randomGenerator) { synchronized (shared) { shared.setRandomGenerator(randomGenerator); } } }
/** * Returns a deep copy of the receiver; the copy will produce identical * sequences. After this call has returned, the copy and the receiver have * equal but separate state. * * @return a copy of the receiver. */ public Object clone() { BreitWignerMeanSquare copy = (BreitWignerMeanSquare) super.clone(); if (this.uniform != null) copy.uniform = new DoubleUniform(copy.randomGenerator); return copy; }
/** * Sets the uniform random number generated shared by all <b>static</b> * methods. * * @param randomGenerator * the new uniform random number generator to be shared. */ private static void xstaticSetRandomGenerator(DoubleRandomEngine randomGenerator) { synchronized (shared) { shared.setRandomGenerator(randomGenerator); } } }
/** * Returns a deep copy of the receiver; the copy will produce identical * sequences. After this call has returned, the copy and the receiver have * equal but separate state. * * @return a copy of the receiver. */ public Object clone() { BreitWignerMeanSquare copy = (BreitWignerMeanSquare) super.clone(); if (this.uniform != null) copy.uniform = new DoubleUniform(copy.randomGenerator); return copy; }
/** * Constructs a BreitWigner distribution. * * @param cut * </tt>cut==Double.NEGATIVE_INFINITY</tt> indicates "don't cut". */ public BreitWigner(double mean, double gamma, double cut, DoubleRandomEngine randomGenerator) { setRandomGenerator(randomGenerator); setState(mean, gamma, cut); }
/** * Returns a random number from the distribution. */ public double nextDouble() { return nextDouble(mean, gamma, cut); }
/** * Sets the uniform random number generated shared by all <b>static</b> * methods. * * @param randomGenerator * the new uniform random number generator to be shared. */ private static void xstaticSetRandomGenerator(DoubleRandomEngine randomGenerator) { synchronized (shared) { shared.setRandomGenerator(randomGenerator); } } }
/** * Returns a random number from the distribution. * * @param cut * </tt>cut==Double.NEGATIVE_INFINITY</tt> indicates "don't cut". */ public static double staticNextDouble(double mean, double gamma, double cut) { synchronized (shared) { return shared.nextDouble(mean, gamma, cut); } }
/** * Sets the uniform random number generated shared by all <b>static</b> * methods. * * @param randomGenerator * the new uniform random number generator to be shared. */ private static void xstaticSetRandomGenerator(DoubleRandomEngine randomGenerator) { synchronized (shared) { shared.setRandomGenerator(randomGenerator); } } }
/** * Returns a random number from the distribution. * * @param cut * </tt>cut==Double.NEGATIVE_INFINITY</tt> indicates "don't cut". */ public static double staticNextDouble(double mean, double gamma, double cut) { synchronized (shared) { return shared.nextDouble(mean, gamma, cut); } }
/** * Returns a random number from the distribution. * * @param cut * </tt>cut==Double.NEGATIVE_INFINITY</tt> indicates "don't cut". */ public static double staticNextDouble(double mean, double gamma, double cut) { synchronized (shared) { return shared.nextDouble(mean, gamma, cut); } }
/** * Returns a random number from the distribution. * * @param cut * </tt>cut==Double.NEGATIVE_INFINITY</tt> indicates "don't cut". */ public static double staticNextDouble(double mean, double gamma, double cut) { synchronized (shared) { return shared.nextDouble(mean, gamma, cut); } }