herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::RandomHelpers::Generator< Zero > Class Reference

Generate nothing. More...

#include <RandomHelpers.h>

Public Member Functions

 Generator (double low, double up)
 Construct from boundaries.
 
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

double theLower
 The lower boundary.
 
double theUpper
 The upper boundary.
 

Detailed Description

Generate nothing.

Author
Simon Platzer

Definition at line 915 of file RandomHelpers.h.

Constructor & Destructor Documentation

◆ Generator()

Herwig::RandomHelpers::Generator< Zero >::Generator ( double  low,
double  up 
)
inline

Construct from boundaries.

Definition at line 932 of file RandomHelpers.h.

Member Function Documentation

◆ lower()

double Herwig::RandomHelpers::Generator< Zero >::lower ( ) const
inline

Return the lower bound of the density generated.

Definition at line 938 of file RandomHelpers.h.

◆ normalization()

double Herwig::RandomHelpers::Generator< Zero >::normalization ( ) const
inline

Return the density's normalization.

Definition at line 955 of file RandomHelpers.h.

◆ operator()()

double Herwig::RandomHelpers::Generator< Zero >::operator() ( double  r) const
inline

Generate the return value according to the implemented density, given a flat random number on the unit interval.

Definition at line 961 of file RandomHelpers.h.

References Herwig::RandomHelpers::Generator< Density >::lower(), and Herwig::RandomHelpers::Generator< Density >::upper().

◆ upper()

double Herwig::RandomHelpers::Generator< Zero >::upper ( ) const
inline

Return the upper bound of the density generated.

Definition at line 943 of file RandomHelpers.h.

◆ value()

double Herwig::RandomHelpers::Generator< Zero >::value ( double  x) const
inline

Member Data Documentation

◆ theLower

double Herwig::RandomHelpers::Generator< Zero >::theLower
private

The lower boundary.

Definition at line 920 of file RandomHelpers.h.

◆ theUpper

double Herwig::RandomHelpers::Generator< Zero >::theUpper
private

The upper boundary.

Definition at line 925 of file RandomHelpers.h.


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