tmdlib is hosted by Hepforge, IPPP Durham
TMDlib  1.0.X
BaseInterpolation Class Reference

#include <TMDlib_InterpolationKS.h>

Inheritance diagram for BaseInterpolation:
CubicSpline3D Interpolation2D

Public Member Functions

 BaseInterpolation ()
 default constructor More...
 
virtual ~BaseInterpolation ()
 default destructor More...
 
virtual vector< pair< double, double > > grid_limits () const
 grid limits in form of vector of pairs: [[x1min,x1max], [x2min,x2max],..] More...
 
virtual double interp (const vector< double > &x)
 return the interpolated value corresponding to the vector (x1,x2,x3,..) More...
 
unsigned int eval_status ()
 

Detailed Description

Base class for interpolation

Constructor & Destructor Documentation

◆ BaseInterpolation()

BaseInterpolation::BaseInterpolation ( )
inline

default constructor

◆ ~BaseInterpolation()

virtual BaseInterpolation::~BaseInterpolation ( )
inlinevirtual

default destructor

Member Function Documentation

◆ eval_status()

unsigned int BaseInterpolation::eval_status ( )
inline

return status of the last evaluation

It needs to be implemented in each derived class, the idea is that the variable is recomputed after each evaluation. Its binary format is such that the rightmost bit corresponds to the first variable from the vector x of the interp(const vector<double> &x) so for example: 11 (decimal 3) the first two elements were out of range, 10 (decimal 2) the second element was out of range, 0 (decimal 0) none element out of range (in other words success).

◆ grid_limits()

virtual vector<pair <double, double> > BaseInterpolation::grid_limits ( ) const
inlinevirtual

grid limits in form of vector of pairs: [[x1min,x1max], [x2min,x2max],..]

Reimplemented in CubicSpline3D, and Interpolation2D.

◆ interp()

virtual double BaseInterpolation::interp ( const vector< double > &  x)
inlinevirtual

return the interpolated value corresponding to the vector (x1,x2,x3,..)

Reimplemented in CubicSpline3D, and Interpolation2D.


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