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

Generate x flat. 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 x flat.

Author
Simon Platzer

Definition at line 841 of file RandomHelpers.h.

Constructor & Destructor Documentation

◆ Generator()

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

Construct from boundaries.

Definition at line 858 of file RandomHelpers.h.

Member Function Documentation

◆ lower()

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

Return the lower bound of the density generated.

Definition at line 864 of file RandomHelpers.h.

◆ normalization()

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

Return the density's normalization.

Definition at line 881 of file RandomHelpers.h.

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

◆ operator()()

double Herwig::RandomHelpers::Generator< Flat >::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 887 of file RandomHelpers.h.

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

◆ upper()

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

Return the upper bound of the density generated.

Definition at line 869 of file RandomHelpers.h.

◆ value()

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

Member Data Documentation

◆ theLower

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

The lower boundary.

Definition at line 846 of file RandomHelpers.h.

◆ theUpper

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

The upper boundary.

Definition at line 851 of file RandomHelpers.h.


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