TS++ library: time series library

◆ LinearInterpolator()

ts::ipo::LinearInterpolator::LinearInterpolator ( const Tconst_timeseries ts,
const bool &  debug = false 
)

initialize the linear interpolator

Definition at line 48 of file ipolin.cc.

References ts::ipo::Interpolator::debug(), ts::TimeSeries< S, H >::header, Madjustedfirst, Mdt, Mlast, ts::ipo::Interpolator::Mts, TSXX_debug, and TSXX_value.

49  :
50  Tbase(ts, debug),
51  Mlast(sff::wid2lastsample(Mts.header)),
52  Mdt(libtime::double2time(Mts.header.dt)),
53  Madjustedfirst(Mts.header.date+(Mdt/2)),
55  {
56  TSXX_debug(this->debug(),
57  "LinearInterpolator::LinearInterpolatorperator(...):",
58  TSXX_value(ts.first()) << " " <<
59  TSXX_value(ts.last()) << " "
60  << std::endl <<
61  " " << TSXX_value(Mts.header.date.timestring())
62  << std::endl <<
63  " " << TSXX_value(Mlast.timestring())
64  << std::endl <<
65  " " << TSXX_value(Mdt.timestring())
66  << std::endl <<
67  " " << TSXX_value(Madjustedfirst.timestring())
68  );
69  } // LinearInterpolator::LinearInterpolator(...)
Tconst_timeseries Mts
here we hold a copy
Definition: ipo.h:131
Interpolator Tbase
Definition: ipolin.h:54
#define TSXX_value(V)
report value
Definition: debug.h:66
libtime::TAbsoluteTime Madjustedfirst
Definition: ipolin.h:67
#define TSXX_debug(C, N, M)
produce debug output
Definition: debug.h:51
libtime::TAbsoluteTime Mlast
Definition: ipolin.h:65
libtime::TRelativeTime Mdt
Definition: ipolin.h:66
All stuff in this library will be placed within namespace ts.
Definition: anyfilter.cc:43
libtime::TRange Minputwindow
Definition: ipolin.h:68
Theader header
data header fields
Definition: tsxx.h:134
bool debug() const
indicate whether interpolator is in debug mode
Definition: ipo.h:126
Here is the call graph for this function: