npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0

Public Types

enum  { interval_quadrature = 0 }
 

Public Member Functions

 Gauss1DQuadrature (unsigned npoints, long double mu, long double sigma)
 
unsigned npoints () const
 
long double mean () const
 
long double sigma () const
 
void getAllAbscissae (long double *abscissae, unsigned len) const
 
void getAllWeights (long double *weights, unsigned len) const
 
template<typename FcnResult , typename FcnArg >
long double integrate (const Functor1< FcnResult, FcnArg > &fcn) const
 

Static Public Member Functions

static bool isAllowed (const unsigned npoints)
 
static std::vector< unsigned > allowedNPonts ()
 
static unsigned minimalExactRule (const unsigned polyDegree)
 

Member Function Documentation

◆ allowedNPonts()

static std::vector<unsigned> npstat::Gauss1DQuadrature::allowedNPonts ( )
inlinestatic

The complete set of allowed rules, in the increasing order

◆ integrate()

template<typename FcnResult , typename FcnArg >
long double npstat::Gauss1DQuadrature::integrate ( const Functor1< FcnResult, FcnArg > &  fcn) const
inline

Perform the quadrature

◆ isAllowed()

static bool npstat::Gauss1DQuadrature::isAllowed ( const unsigned  npoints)
inlinestatic

Check if the rule with the given number of points is supported

◆ minimalExactRule()

static unsigned npstat::Gauss1DQuadrature::minimalExactRule ( const unsigned  polyDegree)
inlinestatic

Minimum number of points, among the supported rules, which integrates a polynomial with the given degree exactly (with the appropriate weight). Returns 0 if the degree is out of range.


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