Herwig
7.2.1
|
Generate a rescaled density. More...
#include <RandomHelpers.h>
Public Member Functions | |
Generator (const Generator< Density > &gen, double sc) | |
Construct from generator and scale. | |
const Generator< Density > & | generator () const |
Return the generator. | |
double | scale () const |
Return the scale. | |
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 | |
Generator< Density > | theGenerator |
The underlying generator. | |
double | theScale |
The rescaling factor. | |
Generate a rescaled density.
Definition at line 336 of file RandomHelpers.h.