Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Math::VirtualIntegrator Class Referenceabstract

Abstract class for all numerical integration methods (1D and multi-dim) Interface defining the common methods for the numerical integrator classes of one and multi dimensions The derived class VirtualIntegratorOneDim defines the methods for one-dimensional integration.

The derived class VirtualIntegratorMultiDim defines the method for multi-dimensional integration. The concrete classes for one dimension (e.g. GSLIntegrator) or multi-dimension (e.g. GSLMCIntegrator) can be created using the plug-in manager. Users should not use directly this class but the concrete classes ROOT::Math::IntegratorOneDim or ROOT::Math::IntegratorMultiDim

Definition at line 48 of file VirtualIntegrator.h.

Public Member Functions

virtual ~VirtualIntegrator ()
 destructor: no operation
 
virtual double Error () const =0
 return the estimate of the absolute Error of the last Integral calculation
 
virtual int NEval () const
 return number of function evaluations in calculating the integral (if integrator do not implement this function returns -1)
 
virtual double Result () const =0
 return the Result of the last Integral calculation
 
virtual void SetAbsTolerance (double)=0
 set the desired absolute Error
 
virtual void SetRelTolerance (double)=0
 set the desired relative Error
 
virtual int Status () const =0
 return the Error Status of the last Integral calculation
 

#include <Math/VirtualIntegrator.h>

Inheritance diagram for ROOT::Math::VirtualIntegrator:
[legend]

Constructor & Destructor Documentation

◆ ~VirtualIntegrator()

virtual ROOT::Math::VirtualIntegrator::~VirtualIntegrator ( )
inlinevirtual

destructor: no operation

Definition at line 53 of file VirtualIntegrator.h.

Member Function Documentation

◆ Error()

virtual double ROOT::Math::VirtualIntegrator::Error ( ) const
pure virtual

return the estimate of the absolute Error of the last Integral calculation

Implemented in ROOT::Math::AdaptiveIntegratorMultiDim, ROOT::Math::GaussIntegrator, ROOT::Math::GSLIntegrator, and ROOT::Math::GSLMCIntegrator.

◆ NEval()

virtual int ROOT::Math::VirtualIntegrator::NEval ( ) const
inlinevirtual

return number of function evaluations in calculating the integral (if integrator do not implement this function returns -1)

Reimplemented in ROOT::Math::AdaptiveIntegratorMultiDim, ROOT::Math::GaussLegendreIntegrator, ROOT::Math::GSLIntegrator, and ROOT::Math::GSLMCIntegrator.

Definition at line 84 of file VirtualIntegrator.h.

◆ Result()

virtual double ROOT::Math::VirtualIntegrator::Result ( ) const
pure virtual

return the Result of the last Integral calculation

Implemented in ROOT::Math::AdaptiveIntegratorMultiDim, ROOT::Math::GaussIntegrator, ROOT::Math::GSLIntegrator, and ROOT::Math::GSLMCIntegrator.

◆ SetAbsTolerance()

virtual void ROOT::Math::VirtualIntegrator::SetAbsTolerance ( double  )
pure virtual

◆ SetRelTolerance()

virtual void ROOT::Math::VirtualIntegrator::SetRelTolerance ( double  )
pure virtual

◆ Status()

virtual int ROOT::Math::VirtualIntegrator::Status ( ) const
pure virtual

return the Error Status of the last Integral calculation

Implemented in ROOT::Math::AdaptiveIntegratorMultiDim, ROOT::Math::GaussIntegrator, ROOT::Math::GSLIntegrator, and ROOT::Math::GSLMCIntegrator.


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