public class BreitWignerMeanSquare extends BreitWigner
Instance methods operate on a user supplied uniform random number generator; they are unsynchronized.
Implementation: This is a port of RandBreitWigner used in CLHEP 1.4.0 (C++).
Modifier and Type | Field and Description |
---|---|
protected Uniform |
uniform |
cut, gamma, mean
randomGenerator
Constructor and Description |
---|
BreitWignerMeanSquare(double mean,
double gamma,
double cut,
MersenneTwisterFast randomGenerator)
Constructs a mean-squared BreitWigner distribution.
|
Modifier and Type | Method and Description |
---|---|
double |
nextDouble(double mean,
double gamma,
double cut)
Returns a mean-squared random number from the distribution; bypasses the internal state.
|
nextDouble, setState, toString
apply, apply, getRandomGenerator, nextInt, setRandomGenerator
protected Uniform uniform
public BreitWignerMeanSquare(double mean, double gamma, double cut, MersenneTwisterFast randomGenerator)
cut
- cut==Double.NEGATIVE_INFINITY indicates "don't cut".public double nextDouble(double mean, double gamma, double cut)
nextDouble
in class BreitWigner
cut
- cut==Double.NEGATIVE_INFINITY indicates "don't cut".