TS++ library: time series library
ipolin.h
Go to the documentation of this file.
1 
35 // include guard
36 #ifndef TF_IPOLIN_H_VERSION
37 
38 #define TF_IPOLIN_H_VERSION \
39  "TF_IPOLIN_H V1.0 "
40 
41 #include<tsxx/ipo.h>
42 
43 namespace ts {
44 
45  namespace ipo {
46 
53  public:
55  using Tbase::Ttimeseries;
58  using Tbase::Theader;
59  using Tbase::Tvalue;
61  const bool& debug=false);
63  Tvalue operator()(const libtime::TAbsoluteTime& t) const;
64  private:
65  libtime::TAbsoluteTime Mlast;
66  libtime::TRelativeTime Mdt;
67  libtime::TAbsoluteTime Madjustedfirst;
68  libtime::TRange Minputwindow;
69  }; // class LinearInterpolator
70 
71  } // namespace ipo
72 
73 } // namespace ts
74 
75 #endif // TF_IPOLIN_H_VERSION (includeguard)
76 
77 /* ----- END OF ipolin.h ----- */
Tconst_timeseries::Theader Theader
Definition: ipo.h:118
Interpolator Tbase
Definition: ipolin.h:54
LinearInterpolator(const Tconst_timeseries &ts, const bool &debug=false)
initialize the linear interpolator
Definition: ipolin.cc:48
libtime::TAbsoluteTime Madjustedfirst
Definition: ipolin.h:67
Ttimeseries::Tvalue Tvalue
Definition: ipo.h:119
libtime::TAbsoluteTime Mlast
Definition: ipolin.h:65
libtime::TRelativeTime Mdt
Definition: ipolin.h:66
Interface to time series interpolator.
Definition: ipo.h:113
very simple linear interpolator
Definition: ipolin.h:52
Structure to hold the data samples of a series together with header information to form a time series...
Definition: tsxx.h:83
Tvalue operator()(const libtime::TAbsoluteTime &t) const
calculate interpolated value
Definition: ipolin.cc:79
All stuff in this library will be placed within namespace ts.
Definition: anyfilter.cc:43
libtime::TRange Minputwindow
Definition: ipolin.h:68
bool debug() const
indicate whether interpolator is in debug mode
Definition: ipo.h:126
interpolation interface (prototypes)
ts::TDsfftimeseries Ttimeseries
Definition: ipo.h:115
Tconst_timeseries::Tseries Tconst_series
Definition: ipo.h:117
Ttimeseries::Tconsttimeseries Tconst_timeseries
Definition: ipo.h:116