herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::RandomHelpers::Generator< Expression > Struct Referenceabstract

Container base class for a general density. More...

#include <RandomHelpers.h>

Inheritance diagram for Herwig::RandomHelpers::Generator< Expression >:

Public Member Functions

virtual ~Generator ()
 The destructor.
 
virtual double lower () const =0
 Return the lower bound of the density generated.
 
virtual double upper () const =0
 Return the upper bound of the density generated.
 
virtual double value (double x) const =0
 Return the density's value.
 
virtual double normalization () const =0
 Return the density's normalization.
 
virtual double operator() (double r) const =0
 Generate the return value according to the implemented density, given a flat random number on the unit interval.
 

Detailed Description

Container base class for a general density.

Author
Simon Platzer

Definition at line 83 of file RandomHelpers.h.

Constructor & Destructor Documentation

◆ ~Generator()

virtual Herwig::RandomHelpers::Generator< Expression >::~Generator ( )
inlinevirtual

The destructor.

Definition at line 88 of file RandomHelpers.h.

Member Function Documentation

◆ lower()

virtual double Herwig::RandomHelpers::Generator< Expression >::lower ( ) const
pure virtual

Return the lower bound of the density generated.

Implemented in Herwig::RandomHelpers::Generator< Container< Density > >.

◆ normalization()

virtual double Herwig::RandomHelpers::Generator< Expression >::normalization ( ) const
pure virtual

Return the density's normalization.

Implemented in Herwig::RandomHelpers::Generator< Container< Density > >.

◆ operator()()

virtual double Herwig::RandomHelpers::Generator< Expression >::operator() ( double  r) const
pure virtual

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

Implemented in Herwig::RandomHelpers::Generator< Container< Density > >.

◆ upper()

virtual double Herwig::RandomHelpers::Generator< Expression >::upper ( ) const
pure virtual

Return the upper bound of the density generated.

Implemented in Herwig::RandomHelpers::Generator< Container< Density > >.

◆ value()

virtual double Herwig::RandomHelpers::Generator< Expression >::value ( double  x) const
pure virtual

Return the density's value.

Implemented in Herwig::RandomHelpers::Generator< Container< Density > >.


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