TS++ library: time series library
|
Interface to time series interpolator. More...
#include <ipo.h>
Public Types | |
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 | |
virtual | ~Interpolator () |
virtual Tvalue | operator() (const libtime::TAbsoluteTime &t) const =0 |
Theader | header () const |
Tconst_series | series () const |
Tconst_timeseries | timeseries () const |
bool | debug () const |
indicate whether interpolator is in debug mode More... | |
Protected Member Functions | |
Interpolator (Tconst_timeseries ts, const bool &debug=false) | |
Protected Attributes | |
Tconst_timeseries | Mts |
here we hold a copy More... | |
Private Attributes | |
bool | Mdebug |
produce debug output More... | |
Interface to time series interpolator.
This is the interpolator base class. It is a virtual base class in that the base class itself provides not functionality. It only defines the common API for interpolators. Derived classes provide actual interpolation through the virtual member operator Interpolator::operator()(const libtime::TAbsoluteTime& t) which must be implemented in the derived class.
The interpolator holds the input time series as member data. In that sense it can be considered a browser into the time series data. The member operator can be used to read sample values for any time value for which an interpolated sample value is desired.