TS++ library: time series library
|
very simple linear interpolator More...
#include <ipolin.h>
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 |
very simple linear interpolator
locates position of new sample and uses linear interpolation between neighbouring samples to calculate new value.