ROOT logo
ROOT » MATH » MATHCORE » ROOT::Math::VirtualIntegrator

class ROOT::Math::VirtualIntegrator


   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


   @ingroup  Integration


Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~VirtualIntegrator()
virtual doubleError() const
virtual intNEval() const
ROOT::Math::VirtualIntegrator&operator=(const ROOT::Math::VirtualIntegrator&)
virtual doubleResult() const
virtual voidSetAbsTolerance(double)
virtual voidSetRelTolerance(double)
virtual intStatus() const

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

virtual ~VirtualIntegrator()
 destructor: no operation
{}
void SetRelTolerance(double )
      set the desired relative Error

void SetAbsTolerance(double )
      set the desired absolute Error

double Result() const
      return  the Result of the last Integral calculation

double Error() const
      return the estimate of the absolute Error of the last Integral calculation

int Status() const
      return the Error Status of the last Integral calculation

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

{ return -1; }