Package cern.jet.random
Class BreitWignerMeanSquare
java.lang.Object
cern.colt.PersistentObject
cern.jet.random.AbstractDistribution
cern.jet.random.AbstractContinousDistribution
cern.jet.random.BreitWigner
cern.jet.random.BreitWignerMeanSquare
- All Implemented Interfaces:
DoubleFunction,IntFunction,Serializable,Cloneable
Mean-square BreitWigner distribution; See the math definition.
Static methods operate on a default uniform random number generator; they are synchronized.
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++).
- Version:
- 1.0, 09/24/99
- Author:
- wolfgang.hoschek@cern.ch
- See Also:
-
Field Summary
FieldsFields inherited from class cern.jet.random.BreitWigner
cut, gamma, meanFields inherited from class cern.jet.random.AbstractDistribution
randomGeneratorFields inherited from class cern.colt.PersistentObject
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionBreitWignerMeanSquare(double mean, double gamma, double cut, RandomEngine randomGenerator) Constructs a mean-squared BreitWigner distribution. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a deep copy of the receiver; the copy will produce identical sequences.doublenextDouble(double mean, double gamma, double cut) Returns a mean-squared random number from the distribution; bypasses the internal state.static doublestaticNextDouble(double mean, double gamma, double cut) Returns a random number from the distribution.Methods inherited from class cern.jet.random.BreitWigner
nextDouble, setState, toStringMethods inherited from class cern.jet.random.AbstractDistribution
apply, apply, getRandomGenerator, makeDefaultGenerator, nextInt, setRandomGenerator
-
Field Details
-
uniform
-
-
Constructor Details
-
BreitWignerMeanSquare
Constructs a mean-squared BreitWigner distribution.- Parameters:
cut- cut==Double.NEGATIVE_INFINITY indicates "don't cut".
-
-
Method Details
-
clone
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.- Overrides:
clonein classAbstractDistribution- Returns:
- a copy of the receiver.
-
nextDouble
public double nextDouble(double mean, double gamma, double cut) Returns a mean-squared random number from the distribution; bypasses the internal state.- Overrides:
nextDoublein classBreitWigner- Parameters:
cut- cut==Double.NEGATIVE_INFINITY indicates "don't cut".
-
staticNextDouble
public static double staticNextDouble(double mean, double gamma, double cut) Returns a random number from the distribution.- Parameters:
cut- cut==Double.NEGATIVE_INFINITY indicates "don't cut".
-