thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::Math::Functions::FracPowX< N, D > Struct Template Reference

Class corresponding to functions of the form \(x^{N/D}\) with integer N and D. More...

#include <Maths.h>

Inheritance diagram for ThePEG::Math::Functions::FracPowX< N, D >:

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, int D>
struct ThePEG::Math::Functions::FracPowX< N, D >

Class corresponding to functions of the form \(x^{N/D}\) with integer N and D.

Definition at line 312 of file Maths.h.

Member Function Documentation

◆ generate()

template<int N, int D>
static double ThePEG::Math::Functions::FracPowX< N, D >::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 327 of file Maths.h.

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

◆ integrate()

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

Integrate function in a given interval.

Definition at line 321 of file Maths.h.

References ThePEG::Math::Functions::FracPowX< N, D >::primitive().

Referenced by ThePEG::Math::Functions::FracPowX< N, D >::generate().

◆ primitive()

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

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