16 #ifndef ROOT_Math_GaussLegendreIntegrator
17 #define ROOT_Math_GaussLegendreIntegrator
37 class GaussLegendreIntegrator:
public GaussIntegrator {
44 GaussLegendreIntegrator(
int num = 10 ,
double eps=1e-12);
47 virtual ~GaussLegendreIntegrator();
51 void SetNumberPoints(
int num);
54 virtual void SetRelTolerance (
double);
57 virtual void SetAbsTolerance (
double);
66 void GetWeightVectors(
double *x,
double *w)
const;
68 int GetNumberPoints()
const {
return fNum; }
74 int NEval()
const {
return fNum; }
78 virtual ROOT::Math::IntegratorOneDimOptions Options()
const;
81 virtual void SetOptions(
const ROOT::Math::IntegratorOneDimOptions & opt);
89 virtual double DoIntegral (
double a,
double b,
const IGenFunction* func);
109 void CalcGaussLegendreSamplingPoints();