Interpolator::Interpolator1D Class Reference

This class provide an interface for a 1D interpolator. More...

#include <Interpolator1D.h>

Inherits Interpolator::Interpolator.

Inherited by Interpolator::AkimaInterpolator1D, Interpolator::CubicSplineInterpolator1D, Interpolator::LinearInterpolator1D, Interpolator::PeriodicAkimaInterpolator1D, Interpolator::PeriodicCubicSplineInterpolator1D, and Interpolator::PolynomialInterpolator1D.

Inheritance diagram for Interpolator::Interpolator1D:

Inheritance graph
[legend]
Collaboration diagram for Interpolator::Interpolator1D:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Interpolator1D ()
 Default constructor.
 Interpolator1D (std::string sName, std::string sDescription, std::string sInterpolationType, InterpolationData1D *mInterpolationData)
 This constructor requires 4 parameters :
  • the name of the interpolator
  • the description of the interpolator
  • the interpolated type
  • the interpolation data object.

virtual ~Interpolator1D ()
 Destructor.
long getNbData ()
 Return the number of data provided for the interpolation.
virtual double getInterpolatedValue (double dValue)=0
virtual InterpolationData1DgetInterpolatedData ()
 Return the 1D interpolation data object.
virtual void updateInterpolator ()=0

Protected Attributes

gsl_interp_accel * acc
gsl_spline * spline

Private Attributes

InterpolationData1D_mInterpolationData

Detailed Description

This class provide an interface for a 1D interpolator.

Definition at line 22 of file Interpolator1D.h.


Constructor & Destructor Documentation

Interpolator::Interpolator1D::Interpolator1D  ) 
 

Default constructor.

Definition at line 16 of file Interpolator1D.cpp.

00017 {
00018 }

Interpolator::Interpolator1D::Interpolator1D std::string  sName,
std::string  sDescription,
std::string  sInterpolationType,
InterpolationData1D mInterpolationData
 

This constructor requires 4 parameters :

  • the name of the interpolator
  • the description of the interpolator
  • the interpolated type
  • the interpolation data object.

Definition at line 31 of file Interpolator1D.cpp.

00034                                                                                                          : 
00035 Interpolator(sName,sDescription,sInterpolationType),_mInterpolationData(mInterpolationData)
00036 {                       
00037 }

Interpolator::Interpolator1D::~Interpolator1D  )  [virtual]
 

Destructor.

Definition at line 21 of file Interpolator1D.cpp.

00022 {
00023 
00024 }


Member Function Documentation

InterpolationData1D * Interpolator::Interpolator1D::getInterpolatedData  )  [virtual]
 

Return the 1D interpolation data object.

Definition at line 46 of file Interpolator1D.cpp.

References _mInterpolationData.

Referenced by Interpolator::Table1D::getNbData(), Interpolator::Table1D::getXValue(), Interpolator::Table1D::getXValues(), Interpolator::Table1D::getYValue(), Interpolator::Table1D::getYValues(), Interpolator::Table1D::setValues(), Interpolator::Table1D::setXValue(), Interpolator::Table1D::setYValue(), Interpolator::PolynomialInterpolator1D::updateInterpolator(), Interpolator::PeriodicCubicSplineInterpolator1D::updateInterpolator(), Interpolator::PeriodicAkimaInterpolator1D::updateInterpolator(), Interpolator::LinearInterpolator1D::updateInterpolator(), Interpolator::CubicSplineInterpolator1D::updateInterpolator(), and Interpolator::AkimaInterpolator1D::updateInterpolator().

00047 {
00048         return _mInterpolationData;
00049 }

virtual double Interpolator::Interpolator1D::getInterpolatedValue double  dValue  )  [pure virtual]
 

Implemented in Interpolator::AkimaInterpolator1D, Interpolator::CubicSplineInterpolator1D, Interpolator::LinearInterpolator1D, Interpolator::PeriodicAkimaInterpolator1D, Interpolator::PeriodicCubicSplineInterpolator1D, and Interpolator::PolynomialInterpolator1D.

Referenced by Interpolator::Table1D::computeValue().

long Interpolator::Interpolator1D::getNbData  ) 
 

Return the number of data provided for the interpolation.

Definition at line 40 of file Interpolator1D.cpp.

References _mInterpolationData, and Interpolator::InterpolationData1D::getNbData().

Referenced by Interpolator::AkimaInterpolator1D::AkimaInterpolator1D(), Interpolator::CubicSplineInterpolator1D::CubicSplineInterpolator1D(), Interpolator::LinearInterpolator1D::LinearInterpolator1D(), Interpolator::PeriodicAkimaInterpolator1D::PeriodicAkimaInterpolator1D(), Interpolator::PeriodicCubicSplineInterpolator1D::PeriodicCubicSplineInterpolator1D(), Interpolator::PolynomialInterpolator1D::PolynomialInterpolator1D(), Interpolator::PolynomialInterpolator1D::updateInterpolator(), Interpolator::PeriodicCubicSplineInterpolator1D::updateInterpolator(), Interpolator::PeriodicAkimaInterpolator1D::updateInterpolator(), Interpolator::LinearInterpolator1D::updateInterpolator(), Interpolator::CubicSplineInterpolator1D::updateInterpolator(), and Interpolator::AkimaInterpolator1D::updateInterpolator().

00041 {
00042         return _mInterpolationData->getNbData();
00043 }

Here is the call graph for this function:

virtual void Interpolator::Interpolator1D::updateInterpolator  )  [pure virtual]
 

Implemented in Interpolator::AkimaInterpolator1D, Interpolator::CubicSplineInterpolator1D, Interpolator::LinearInterpolator1D, Interpolator::PeriodicAkimaInterpolator1D, Interpolator::PeriodicCubicSplineInterpolator1D, and Interpolator::PolynomialInterpolator1D.

Referenced by Interpolator::Table1D::setValues(), Interpolator::Table1D::setXValue(), and Interpolator::Table1D::setYValue().


Member Data Documentation

InterpolationData1D* Interpolator::Interpolator1D::_mInterpolationData [private]
 

Definition at line 45 of file Interpolator1D.h.

Referenced by getInterpolatedData(), and getNbData().

gsl_interp_accel* Interpolator::Interpolator1D::acc [protected]
 

Definition at line 41 of file Interpolator1D.h.

Referenced by Interpolator::AkimaInterpolator1D::AkimaInterpolator1D(), Interpolator::CubicSplineInterpolator1D::CubicSplineInterpolator1D(), Interpolator::PolynomialInterpolator1D::getInterpolatedValue(), Interpolator::PeriodicCubicSplineInterpolator1D::getInterpolatedValue(), Interpolator::PeriodicAkimaInterpolator1D::getInterpolatedValue(), Interpolator::LinearInterpolator1D::getInterpolatedValue(), Interpolator::CubicSplineInterpolator1D::getInterpolatedValue(), Interpolator::AkimaInterpolator1D::getInterpolatedValue(), Interpolator::LinearInterpolator1D::LinearInterpolator1D(), Interpolator::PeriodicAkimaInterpolator1D::PeriodicAkimaInterpolator1D(), Interpolator::PeriodicCubicSplineInterpolator1D::PeriodicCubicSplineInterpolator1D(), Interpolator::PolynomialInterpolator1D::PolynomialInterpolator1D(), Interpolator::PolynomialInterpolator1D::updateInterpolator(), Interpolator::PeriodicCubicSplineInterpolator1D::updateInterpolator(), Interpolator::PeriodicAkimaInterpolator1D::updateInterpolator(), Interpolator::LinearInterpolator1D::updateInterpolator(), Interpolator::CubicSplineInterpolator1D::updateInterpolator(), Interpolator::AkimaInterpolator1D::updateInterpolator(), Interpolator::AkimaInterpolator1D::~AkimaInterpolator1D(), Interpolator::CubicSplineInterpolator1D::~CubicSplineInterpolator1D(), Interpolator::LinearInterpolator1D::~LinearInterpolator1D(), Interpolator::PeriodicAkimaInterpolator1D::~PeriodicAkimaInterpolator1D(), Interpolator::PeriodicCubicSplineInterpolator1D::~PeriodicCubicSplineInterpolator1D(), and Interpolator::PolynomialInterpolator1D::~PolynomialInterpolator1D().

gsl_spline* Interpolator::Interpolator1D::spline [protected]
 

Definition at line 42 of file Interpolator1D.h.

Referenced by Interpolator::AkimaInterpolator1D::AkimaInterpolator1D(), Interpolator::CubicSplineInterpolator1D::CubicSplineInterpolator1D(), Interpolator::PolynomialInterpolator1D::getInterpolatedValue(), Interpolator::PeriodicCubicSplineInterpolator1D::getInterpolatedValue(), Interpolator::PeriodicAkimaInterpolator1D::getInterpolatedValue(), Interpolator::CubicSplineInterpolator1D::getInterpolatedValue(), Interpolator::AkimaInterpolator1D::getInterpolatedValue(), Interpolator::LinearInterpolator1D::LinearInterpolator1D(), Interpolator::PeriodicAkimaInterpolator1D::PeriodicAkimaInterpolator1D(), Interpolator::PeriodicCubicSplineInterpolator1D::PeriodicCubicSplineInterpolator1D(), Interpolator::PolynomialInterpolator1D::PolynomialInterpolator1D(), Interpolator::PolynomialInterpolator1D::updateInterpolator(), Interpolator::PeriodicCubicSplineInterpolator1D::updateInterpolator(), Interpolator::PeriodicAkimaInterpolator1D::updateInterpolator(), Interpolator::CubicSplineInterpolator1D::updateInterpolator(), Interpolator::AkimaInterpolator1D::updateInterpolator(), Interpolator::AkimaInterpolator1D::~AkimaInterpolator1D(), Interpolator::CubicSplineInterpolator1D::~CubicSplineInterpolator1D(), Interpolator::LinearInterpolator1D::~LinearInterpolator1D(), Interpolator::PeriodicAkimaInterpolator1D::~PeriodicAkimaInterpolator1D(), Interpolator::PeriodicCubicSplineInterpolator1D::~PeriodicCubicSplineInterpolator1D(), and Interpolator::PolynomialInterpolator1D::~PolynomialInterpolator1D().


The documentation for this class was generated from the following files:
Generated on Tue Apr 14 09:51:31 2009 for Interpolator Library by  doxygen 1.4.5