Public Member Functions

 GaussianQuadrature (int N=2048)
 
double integrate (Integrand &i, double a, double b)
 Returns the integral of the integrand from a to b.
 
int npoints ()
 Returns the number of abissca points used in the Gaussian quadrature.
 
void set_weights (std::string type)
 

Private Member Functions

void gauss_legendre (double x1, double x2, double x[], double w[], int n) const
 
void gauss_hermite (double x[], double w[], int n) const
 

Private Attributes

int _N
 
double * _x
 
double * _v
 

Constructor & Destructor Documentation

GaussianQuadrature ( int  N = 2048)

Constructor that sets the number of fixed points to be used by the Gaussian quadrature. Defaults to 2048 and Legendre quadrature weights.


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