herwig is hosted by Hepforge, IPPP Durham
Herwig  7.1.5
Herwig::RandomHelpers::Generator< Inverse > Class Template Reference

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.
 

Detailed Description

template<>
class Herwig::RandomHelpers::Generator< Inverse >

Generate x with density 1/|x-z|.

Author
Simon Platzer

Definition at line 989 of file RandomHelpers.h.


The documentation for this class was generated from the following file: