Public Member Functions | Protected Member Functions | Protected Attributes

SampledFunction< RT, T > Class Template Reference

make any sampled series comply with MathFunction. If the sampled values are periodic (i.e. phase), set the periodic flag and let period() return the period ( i.e. 2*pi for phase ). More...

Inheritance diagram for SampledFunction< RT, T >:
MathFunction< RT, RT > MathFunctionND< RT, RT > SampledFunctionImpl< RT, T >

List of all members.

Public Member Functions

 SampledFunction (bool periodic_=false)
virtual RT operator[] (int) const =0
virtual float getDx () const =0
virtual float getX0 () const =0
virtual int size () const =0
virtual float period () const
void setPeriodic (bool np)
float getIndex (float x) const
int getNearestIndex (float x) const
RT getValue (RT x) const

Protected Member Functions

virtual bool extrapolate () const
virtual bool hasUdfs () const
virtual bool doInterpolate () const

Protected Attributes

bool periodic

Detailed Description

template<class RT, class T>
class SampledFunction< RT, T >

make any sampled series comply with MathFunction. If the sampled values are periodic (i.e. phase), set the periodic flag and let period() return the period ( i.e. 2*pi for phase ).


Constructor & Destructor Documentation

template<class RT , class T >
SampledFunction< RT, T >::SampledFunction ( bool  periodic_ = false  )  [inline]

Member Function Documentation

template<class RT , class T >
virtual bool SampledFunction< RT, T >::doInterpolate (  )  const [inline, protected, virtual]

Reimplemented in SampledFunctionImpl< RT, T >.

template<class RT , class T >
virtual bool SampledFunction< RT, T >::extrapolate (  )  const [inline, protected, virtual]
template<class RT , class T >
virtual float SampledFunction< RT, T >::getDx (  )  const [pure virtual]
template<class RT , class T >
float SampledFunction< RT, T >::getIndex ( float  x  )  const [inline]
template<class RT , class T >
int SampledFunction< RT, T >::getNearestIndex ( float  x  )  const [inline]
template<class RT , class T >
RT SampledFunction< RT, T >::getValue ( RT  x  )  const [inline, virtual]
template<class RT , class T >
virtual float SampledFunction< RT, T >::getX0 (  )  const [pure virtual]
template<class RT , class T >
virtual bool SampledFunction< RT, T >::hasUdfs (  )  const [inline, protected, virtual]

Reimplemented in SampledFunctionImpl< RT, T >.

template<class RT , class T >
virtual RT SampledFunction< RT, T >::operator[] ( int   )  const [pure virtual]
template<class RT , class T >
virtual float SampledFunction< RT, T >::period (  )  const [inline, virtual]

Reimplemented in SampledFunctionImpl< RT, T >.

template<class RT , class T >
void SampledFunction< RT, T >::setPeriodic ( bool  np  )  [inline]
template<class RT , class T >
virtual int SampledFunction< RT, T >::size (  )  const [pure virtual]

Member Data Documentation

template<class RT , class T >
bool SampledFunction< RT, T >::periodic [protected]