npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::RectangleQuadrature1D Class Reference
Inheritance diagram for npstat::RectangleQuadrature1D:
npstat::AbsIntervalQuadrature1D

Public Types

enum  { interval_quadrature = 1 }
 

Public Member Functions

 RectangleQuadrature1D (unsigned npoints)
 
unsigned npoints () 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, long double a, long double b) const
 
- Public Member Functions inherited from npstat::AbsIntervalQuadrature1D
template<class Functor >
std::vector< std::pair< double, double > > weightedIntegrationPoints (const Functor &weight, const long double left, const long double right) const
 
template<class Functor >
std::vector< std::pair< long double, long double > > weightedIntegrationPointsLD (const Functor &weight, const long double left, const long double right) const
 

Member Function Documentation

◆ integrate()

template<typename FcnResult , typename FcnArg >
long double npstat::RectangleQuadrature1D::integrate ( const Functor1< FcnResult, FcnArg > &  fcn,
long double  a,
long double  b 
) const

Perform the quadrature on the [a, b] interval


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