|
Colt 1.2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcern.colt.PersistentObject
cern.jet.random.AbstractDistribution
cern.jet.random.AbstractContinousDistribution
cern.jet.random.BreitWigner
public class BreitWigner
BreitWigner (aka Lorentz) distribution; See the math definition. A more general form of the Cauchy distribution.
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++).
| Field Summary | |
|---|---|
protected double |
cut
|
protected double |
gamma
|
protected double |
mean
|
protected static BreitWigner |
shared
|
| Fields inherited from class cern.jet.random.AbstractDistribution |
|---|
randomGenerator |
| Fields inherited from class cern.colt.PersistentObject |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
BreitWigner(double mean,
double gamma,
double cut,
RandomEngine randomGenerator)
Constructs a BreitWigner distribution. |
|
| Method Summary | |
|---|---|
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. |
java.lang.String |
toString()
Returns a String representation of the receiver. |
| Methods inherited from class cern.jet.random.AbstractDistribution |
|---|
apply, apply, clone, getRandomGenerator, makeDefaultGenerator, nextInt, setRandomGenerator |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double mean
protected double gamma
protected double cut
protected static BreitWigner shared
| Constructor Detail |
|---|
public BreitWigner(double mean,
double gamma,
double cut,
RandomEngine randomGenerator)
cut - cut==Double.NEGATIVE_INFINITY indicates "don't cut".| Method Detail |
|---|
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".public java.lang.String toString()
toString in class java.lang.Object
|
Colt 1.2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||