ThePEG  1.8.0
Static Public Member Functions
ThePEG::Math::Functions::PowX< N > Struct Template Reference

Class corresponding to functions of the form $x^N$ with integer N. More...

#include <Maths.h>

Inheritance diagram for ThePEG::Math::Functions::PowX< N >:
Inheritance graph
[legend]

List of all members.

Static Public Member Functions

static double primitive (double x)
 The primitive function.
static double integrate (double x0, double x1)
 Integrate function in a given interval.
static double generate (double x0, double x1, double R)
 Sample a distribution in a given interval given a flat random number R in the interval ]0,1[.

Detailed Description

template<int N>
struct ThePEG::Math::Functions::PowX< N >

Class corresponding to functions of the form $x^N$ with integer N.

Definition at line 170 of file Maths.h.


Member Function Documentation

template<int N>
static double ThePEG::Math::Functions::PowX< N >::generate ( double  x0,
double  x1,
double  R 
)
inlinestatic

Sample a distribution in a given interval given a flat random number R in the interval ]0,1[.

Definition at line 184 of file Maths.h.

References ThePEG::Math::Functions::PowX< N >::integrate(), and ThePEG::Math::Functions::PowX< N >::primitive().

template<int N>
static double ThePEG::Math::Functions::PowX< N >::integrate ( double  x0,
double  x1 
)
inlinestatic

Integrate function in a given interval.

Definition at line 178 of file Maths.h.

References ThePEG::Math::Functions::PowX< N >::primitive().

Referenced by ThePEG::Math::Functions::PowX< N >::generate().

template<int N>
static double ThePEG::Math::Functions::PowX< N >::primitive ( double  x)
inlinestatic

The primitive function.

Definition at line 173 of file Maths.h.

Referenced by ThePEG::Math::Functions::PowX< N >::generate(), and ThePEG::Math::Functions::PowX< N >::integrate().


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