TS++ library: time series library
ts::ipo::LinearInterpolator Class Reference

very simple linear interpolator More...

#include <ipolin.h>

Inheritance diagram for ts::ipo::LinearInterpolator:
Collaboration diagram for ts::ipo::LinearInterpolator:

Public Types

typedef Interpolator Tbase
 
typedef ts::TDsfftimeseries Ttimeseries
 
typedef Ttimeseries::Tconsttimeseries Tconst_timeseries
 
typedef Tconst_timeseries::Tseries Tconst_series
 
typedef Tconst_timeseries::Theader Theader
 
typedef Ttimeseries::Tvalue Tvalue
 

Public Member Functions

 LinearInterpolator (const Tconst_timeseries &ts, const bool &debug=false)
 initialize the linear interpolator More...
 
 ~LinearInterpolator ()
 
Tvalue operator() (const libtime::TAbsoluteTime &t) const
 calculate interpolated value More...
 
Theader header () const
 
Tconst_series series () const
 
Tconst_timeseries timeseries () const
 
bool debug () const
 indicate whether interpolator is in debug mode More...
 

Protected Attributes

Tconst_timeseries Mts
 here we hold a copy More...
 

Private Attributes

libtime::TAbsoluteTime Mlast
 
libtime::TRelativeTime Mdt
 
libtime::TAbsoluteTime Madjustedfirst
 
libtime::TRange Minputwindow
 

Detailed Description

very simple linear interpolator

locates position of new sample and uses linear interpolation between neighbouring samples to calculate new value.

Definition at line 52 of file ipolin.h.


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