Herwig 7.3.0
|
Generate x with density 1/((x-z)^2 + abs(w z)) More...
#include <RandomHelpers.h>
Public Member Functions | |
Generator (double z, double w, double l, double u) | |
Construct from pole, width 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 | width () const |
Return the width. | |
double | scale () const |
Return the scale for random numbers. | |
double | offset () const |
Return the offset for random mnumbers. | |
double | sqrtWidth () const |
The square root of width times pole. | |
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 | theWidth |
The width. | |
double | theLower |
The lower bound. | |
double | theUpper |
The upper bound. | |
double | theScale |
Scale for random numbers. | |
double | theOffset |
Offset for random mnumbers. | |
double | theSqrtWidth |
The square root of width times pole. | |
Generate x with density 1/((x-z)^2 + abs(w z))
Definition at line 1231 of file RandomHelpers.h.
|
inline |
Construct from pole, width and boundaries.
Definition at line 1273 of file RandomHelpers.h.
|
inline |
Return the lower bound of the density generated.
Definition at line 1287 of file RandomHelpers.h.
|
inline |
Return the density's normalization.
Definition at line 1331 of file RandomHelpers.h.
|
inline |
Return the offset for random mnumbers.
Definition at line 1312 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 1339 of file RandomHelpers.h.
References Herwig::RandomHelpers::Generator< Density >::lower(), and Herwig::RandomHelpers::Generator< Density >::upper().
|
inline |
Return the position of the pole.
Definition at line 1297 of file RandomHelpers.h.
|
inline |
Return the scale for random numbers.
Definition at line 1307 of file RandomHelpers.h.
|
inline |
The square root of width times pole.
Definition at line 1317 of file RandomHelpers.h.
|
inline |
Return the upper bound of the density generated.
Definition at line 1292 of file RandomHelpers.h.
|
inline |
Return the density's value.
Definition at line 1322 of file RandomHelpers.h.
References Herwig::RandomHelpers::Generator< Density >::lower(), ThePEG::sqr(), and Herwig::RandomHelpers::Generator< Density >::upper().
|
inline |
Return the width.
Definition at line 1302 of file RandomHelpers.h.
|
private |
The lower bound.
Definition at line 1246 of file RandomHelpers.h.
|
private |
Offset for random mnumbers.
Definition at line 1261 of file RandomHelpers.h.
|
private |
The position of the pole.
Definition at line 1236 of file RandomHelpers.h.
|
private |
Scale for random numbers.
Definition at line 1256 of file RandomHelpers.h.
|
private |
The square root of width times pole.
Definition at line 1266 of file RandomHelpers.h.
|
private |
The upper bound.
Definition at line 1251 of file RandomHelpers.h.
|
private |
The width.
Definition at line 1241 of file RandomHelpers.h.