31 #ifndef ROOT_Math_GSLIntegrator
32 #define ROOT_Math_GSLIntegrator
35 #ifndef ROOT_Math_VirtualIntegrator
39 #ifndef ROOT_Math_IntegrationTypes
43 #ifndef ROOT_Math_IFunctionfwd
50 #ifndef ROOT_Math_GSLFunctionAdapter
63 class GSLIntegrationWorkspace;
64 class GSLFunctionWrapper;
254 double Integral(
double a,
double b);
279 double Integral(
const std::vector<double> & pts);
331 double Error()
const;
double Result() const
return the Result of the last Integral calculation
GKRule
enumeration specifying the Gauss-KronRod integration rule for ADAPTIVE integration type ...
Interface (abstract) class for 1D numerical integration It must be implemented by the concrate Integr...
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Namespace for new ROOT classes and functions.
double IntegralUp(const IGenFunction &f, double a)
evaluate the Integral of a function f over the semi-infinite interval (a,+inf)
void SetIntegrationRule(Integration::GKRule)
set the integration rule (Gauss-Kronrod rule).
virtual ROOT::Math::IntegratorOneDimOptions Options() const
get the option used for the integration
GSLFunctionWrapper * fFunction
const char * GetTypeName() const
return the name
virtual void SetOptions(const ROOT::Math::IntegratorOneDimOptions &opt)
set the options
Class for performing numerical integration of a function in one dimension.
double IntegralLow(const IGenFunction &f, double b)
evaluate the Integral of a function f over the over the semi-infinite interval (-inf,b)
double(* GSLFuncPointer)(double, void *)
Function pointer corresponding to gsl_function signature.
int Status() const
return the Error Status of the last Integral calculation
double Integral()
evaluate the Integral over the infinite interval (-inf,+inf) using the function previously set with G...
int NEval() const
return number of function evaluations in calculating the integral
Numerical one dimensional integration options.
void SetFunction(const IGenFunction &f)
method to set the a generic integration function
Type
enumeration specifying the integration types.
IntegrationOneDim::Type GetType() const
get type name
GSLIntegrator(double absTol=1.E-9, double relTol=1E-6, size_t size=1000)
Default constructor of GSL Integrator for Adaptive Singular integration.
void SetRelTolerance(double relTolerance)
set the desired relative Error
GSLIntegrationWorkspace * fWorkspace
double IntegralCauchy(double a, double b, double c)
evaluate the Cauchy principal value of the integral of a previously defined function f over the defin...
Namespace for new Math classes and functions.
void SetAbsTolerance(double absTolerance)
set the desired absolute Error
GSLIntegrator & operator=(const GSLIntegrator &)
Wrapper class to the gsl_function C structure.
Integration::GKRule fRule
double Error() const
return the estimate of the absolute Error of the last Integral calculation