Herwig
7.2.1
|
Generate x with density 1/|x-z|. More...
#include <RandomHelpers.h>
Public Member Functions | |
Generator (double z, double l, double u) | |
Construct from pole and boundaries. | |
double | lower () const |
Return the lower bound of the density generated. | |
double | upper () const |
Return the upper bound of the density generated. | |
double | pole () const |
Return the position of the pole. | |
double | scale () const |
Return the scale for random numbers. | |
double | offset () const |
Return the offset for random mnumbers. | |
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 | thePole |
The position of the pole. | |
double | theLower |
The lower bound. | |
double | theUpper |
The upper bound. | |
double | theScale |
Scale for random numbers. | |
double | theOffset |
Offset for random mnumbers. | |
Generate x with density 1/|x-z|.
Definition at line 989 of file RandomHelpers.h.