Herwig 7.3.0
|
Generate nothing. More...
#include <RandomHelpers.h>
Public Member Functions | |
Generator (double low, double up) | |
Construct from boundaries. | |
double | lower () const |
Return the lower bound of the density generated. | |
double | upper () const |
Return the upper bound of the density generated. | |
double | value (double x) const |
Return the density's value. | |
double | normalization () const |
Return the density's normalization. | |
double | operator() (double r) const |
Generate the return value according to the implemented density, given a flat random number on the unit interval. | |
Private Attributes | |
double | theLower |
The lower boundary. | |
double | theUpper |
The upper boundary. | |
|
inline |
Construct from boundaries.
Definition at line 932 of file RandomHelpers.h.
|
inline |
Return the lower bound of the density generated.
Definition at line 938 of file RandomHelpers.h.
|
inline |
Return the density's normalization.
Definition at line 955 of file RandomHelpers.h.
|
inline |
Generate the return value according to the implemented density, given a flat random number on the unit interval.
Definition at line 961 of file RandomHelpers.h.
References Herwig::RandomHelpers::Generator< Density >::lower(), and Herwig::RandomHelpers::Generator< Density >::upper().
|
inline |
Return the upper bound of the density generated.
Definition at line 943 of file RandomHelpers.h.
|
inline |
Return the density's value.
Definition at line 948 of file RandomHelpers.h.
References ThePEG::Constants::epsilon, Herwig::RandomHelpers::Generator< Density >::lower(), and Herwig::RandomHelpers::Generator< Density >::upper().
|
private |
The lower boundary.
Definition at line 920 of file RandomHelpers.h.
|
private |
The upper boundary.
Definition at line 925 of file RandomHelpers.h.