ldas-tools-filters  2.6.4
Public Member Functions | List of all members
Filters::Interpolate< T > Class Template Reference

Class which implements Lagrange interpolation of a vector. More...

#include <Interpolate.hh>

Public Member Functions

 Interpolate (const double alpha, const size_t order)
 Constructor. More...
 
double getAlpha () const
 Get alpha parameter.
 
size_t getOrder () const
 Get order parameter.
 
void apply (std::valarray< T > &x)
 Apply the interpolation. More...
 
 Interpolate (const double alpha, const size_t order)
 Constructor. More...
 
double getAlpha () const
 Get alpha parameter.
 
size_t getOrder () const
 Get order parameter.
 
void apply (std::valarray< T > &x)
 Apply the interpolation. More...
 
 Interpolate (const double alpha, const size_t order)
 Constructor. More...
 
double getAlpha () const
 Get alpha parameter.
 
size_t getOrder () const
 Get order parameter.
 
void apply (std::valarray< T > &x)
 Apply the interpolation. More...
 

Detailed Description

template<class T>
class Filters::Interpolate< T >

Class which implements Lagrange interpolation of a vector.

Constructor & Destructor Documentation

◆ Interpolate() [1/3]

template<class T >
Filters::Interpolate< T >::Interpolate ( const double  alpha,
const size_t  order 
)

Constructor.

Parameters
[in]alphainterpolation parameter, 0 < alpha < 1
[in]orderorder of Lagrange polynomial used for interpolation
Exceptions
invalid_argumentThrown if alpha <= 0 or alpha >= 1

◆ Interpolate() [2/3]

template<class T >
Filters::Interpolate< T >::Interpolate ( const double  alpha,
const size_t  order 
)

Constructor.

Parameters
[in]alphainterpolation parameter, 0 < alpha < 1
[in]orderorder of Lagrange polynomial used for interpolation
Exceptions
invalid_argumentThrown if alpha <= 0 or alpha >= 1

◆ Interpolate() [3/3]

template<class T >
Filters::Interpolate< T >::Interpolate ( const double  alpha,
const size_t  order 
)

Constructor.

Parameters
[in]alphainterpolation parameter, 0 < alpha < 1
[in]orderorder of Lagrange polynomial used for interpolation
Exceptions
invalid_argumentThrown if alpha <= 0 or alpha >= 1

Member Function Documentation

◆ apply() [1/3]

template<class T >
void Filters::Interpolate< T >::apply ( std::valarray< T > &  x)

Apply the interpolation.

The data contained in x is interpolated and the result returned in x.

Parameters
[in]xthe data to be interpolated
Exceptions
invalid_argumentThrown if x.size() == 0

◆ apply() [2/3]

template<class T >
void Filters::Interpolate< T >::apply ( std::valarray< T > &  x)

Apply the interpolation.

The data contained in x is interpolated and the result returned in x.

Parameters
[in]xthe data to be interpolated
Exceptions
invalid_argumentThrown if x.size() == 0

◆ apply() [3/3]

template<class T >
void Filters::Interpolate< T >::apply ( std::valarray< T > &  x)

Apply the interpolation.

The data contained in x is interpolated and the result returned in x.

Parameters
[in]xthe data to be interpolated
Exceptions
invalid_argumentThrown if x.size() == 0

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