Herwig 7.3.0
|
Generate x with density |(x-z)|^p. More...
#include <RandomHelpers.h>
Public Member Functions | |
Generator (double z, double p, double l, double u) | |
Construct from pole, power 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 | power () const |
Return the power. | |
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 | thePower |
The power. | |
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 |(x-z)|^p.
Definition at line 1103 of file RandomHelpers.h.
|
inline |
Construct from pole, power and boundaries.
Definition at line 1140 of file RandomHelpers.h.
|
inline |
Return the lower bound of the density generated.
Definition at line 1157 of file RandomHelpers.h.
|
inline |
Return the density's normalization.
Definition at line 1194 of file RandomHelpers.h.
|
inline |
Return the offset for random mnumbers.
Definition at line 1182 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 1202 of file RandomHelpers.h.
References ThePEG::pow(), Herwig::RandomHelpers::power(), Herwig::RandomHelpers::sign(), and Herwig::RandomHelpers::Generator< Density >::upper().
|
inline |
Return the position of the pole.
Definition at line 1167 of file RandomHelpers.h.
|
inline |
Return the power.
Definition at line 1172 of file RandomHelpers.h.
|
inline |
Return the scale for random numbers.
Definition at line 1177 of file RandomHelpers.h.
|
inline |
Return the upper bound of the density generated.
Definition at line 1162 of file RandomHelpers.h.
|
inline |
Return the density's value.
Definition at line 1187 of file RandomHelpers.h.
References Herwig::RandomHelpers::Generator< Density >::lower(), ThePEG::pow(), Herwig::RandomHelpers::power(), and Herwig::RandomHelpers::Generator< Density >::upper().
|
private |
The lower bound.
Definition at line 1118 of file RandomHelpers.h.
|
private |
Offset for random mnumbers.
Definition at line 1133 of file RandomHelpers.h.
|
private |
The position of the pole.
Definition at line 1108 of file RandomHelpers.h.
|
private |
The power.
Definition at line 1113 of file RandomHelpers.h.
|
private |
Scale for random numbers.
Definition at line 1128 of file RandomHelpers.h.
|
private |
The upper bound.
Definition at line 1123 of file RandomHelpers.h.