public class BreitWigner extends AbstractContinousDistribution
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 double |
cut |
protected double |
gamma |
protected double |
mean |
protected static BreitWigner |
shared |
randomGenerator
serialVersionUID
Constructor and Description |
---|
BreitWigner(double mean,
double gamma,
double cut,
RandomEngine randomGenerator)
Constructs a BreitWigner distribution.
|
Modifier and Type | Method and Description |
---|---|
double |
nextDouble()
Returns a random number from the distribution.
|
double |
nextDouble(double mean,
double gamma,
double cut)
Returns a random number from the distribution; bypasses the internal state.
|
void |
setState(double mean,
double gamma,
double cut)
Sets the mean, gamma and cut parameters.
|
static double |
staticNextDouble(double mean,
double gamma,
double cut)
Returns a random number from the distribution.
|
String |
toString()
Returns a String representation of the receiver.
|
apply, apply, clone, getRandomGenerator, makeDefaultGenerator, nextInt, setRandomGenerator
protected double mean
protected double gamma
protected double cut
protected static BreitWigner shared
public BreitWigner(double mean, double gamma, double cut, RandomEngine randomGenerator)
cut
- cut==Double.NEGATIVE_INFINITY indicates "don't cut".public double nextDouble()
nextDouble
in class AbstractDistribution
public double nextDouble(double mean, double gamma, double cut)
cut
- cut==Double.NEGATIVE_INFINITY indicates "don't cut".public void setState(double mean, double gamma, double cut)
cut
- cut==Double.NEGATIVE_INFINITY indicates "don't cut".public static double staticNextDouble(double mean, double gamma, double cut)
cut
- cut==Double.NEGATIVE_INFINITY indicates "don't cut".Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.