OpenMS  2.7.0
Public Member Functions | List of all members
TransformationModelInterpolated::Interpolator Class Referenceabstract

The class defines a generic interpolation technique used in the TransformationModelInterpolated. More...

#include <OpenMS/ANALYSIS/MAPMATCHING/TransformationModelInterpolated.h>

Public Member Functions

virtual void init (std::vector< double > &x, std::vector< double > &y)=0
 Initialize the Interpolator. More...
 
virtual double eval (const double &x) const =0
 Evaluate the underlying interpolation at a specific position x. More...
 
virtual ~Interpolator ()
 d'tor. More...
 

Detailed Description

The class defines a generic interpolation technique used in the TransformationModelInterpolated.

Note
This class is nested in cpp file as we don't want this to be part of the public interface nor to be exposed to derived or other classes.

Constructor & Destructor Documentation

◆ ~Interpolator()

virtual ~Interpolator ( )
inlinevirtual

d'tor.

Member Function Documentation

◆ eval()

virtual double eval ( const double &  x) const
pure virtual

Evaluate the underlying interpolation at a specific position x.

Parameters
xThe position where the interpolation should be evaluated.
Returns
The interpolated value.

◆ init()

virtual void init ( std::vector< double > &  x,
std::vector< double > &  y 
)
pure virtual

Initialize the Interpolator.

Parameters
xThe x data.
yThe y data.