Herwig 7.3.0
|
Generate x flat. 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 858 of file RandomHelpers.h.
|
inline |
Return the lower bound of the density generated.
Definition at line 864 of file RandomHelpers.h.
|
inline |
Return the density's normalization.
Definition at line 881 of file RandomHelpers.h.
References Herwig::RandomHelpers::Generator< Density >::lower(), and Herwig::RandomHelpers::Generator< Density >::upper().
|
inline |
Generate the return value according to the implemented density, given a flat random number on the unit interval.
Definition at line 887 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 869 of file RandomHelpers.h.
|
inline |
Return the density's value.
Definition at line 874 of file RandomHelpers.h.
References Herwig::RandomHelpers::Generator< Density >::lower(), and Herwig::RandomHelpers::Generator< Density >::upper().
|
private |
The lower boundary.
Definition at line 846 of file RandomHelpers.h.
|
private |
The upper boundary.
Definition at line 851 of file RandomHelpers.h.