Herwig 7.3.0
|
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.
|
inline |
Construct from pole and boundaries.
Definition at line 1021 of file RandomHelpers.h.
|
inline |
Return the lower bound of the density generated.
Definition at line 1034 of file RandomHelpers.h.
|
inline |
Return the density's normalization.
Definition at line 1066 of file RandomHelpers.h.
|
inline |
Return the offset for random mnumbers.
Definition at line 1054 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 1074 of file RandomHelpers.h.
References Herwig::RandomHelpers::sign(), and Herwig::RandomHelpers::Generator< Density >::upper().
|
inline |
Return the position of the pole.
Definition at line 1044 of file RandomHelpers.h.
|
inline |
Return the scale for random numbers.
Definition at line 1049 of file RandomHelpers.h.
|
inline |
Return the upper bound of the density generated.
Definition at line 1039 of file RandomHelpers.h.
|
inline |
Return the density's value.
Definition at line 1059 of file RandomHelpers.h.
References Herwig::RandomHelpers::Generator< Density >::lower(), and Herwig::RandomHelpers::Generator< Density >::upper().
|
private |
The lower bound.
Definition at line 999 of file RandomHelpers.h.
|
private |
Offset for random mnumbers.
Definition at line 1014 of file RandomHelpers.h.
|
private |
The position of the pole.
Definition at line 994 of file RandomHelpers.h.
|
private |
Scale for random numbers.
Definition at line 1009 of file RandomHelpers.h.
|
private |
The upper bound.
Definition at line 1004 of file RandomHelpers.h.