55 #ifndef TF_FILTER_H_VERSION 57 #define TF_FILTER_H_VERSION \ 88 SetByIndex(
const int& n1,
const int& n2,
const double& v):
91 const bool& debug=
false)
const;
114 const bool& debug=
false)
const;
135 const bool& debug=
false)
const;
153 const bool& debug=
false)
const;
165 const bool& debug=
false)
const;
179 const bool& debug=
false)
const;
210 const bool& debug=
false)
const;
223 const bool& debug=
false)
const;
235 const bool& debug=
false)
const;
249 const bool& debug=
false)
const;
262 const bool& debug=
false)
const;
273 const bool& debug=
false)
const;
284 const bool& debug=
false)
const;
295 const bool& debug=
false)
const;
307 const bool& debug=
false)
const;
323 const bool& debug=
false)
const;
343 const bool& debug=
false)
const;
362 const bool& debug=
false)
const;
376 Pad(
const int& n):
Mn(static_cast<unsigned int>(n))
379 "number of samples to be appended must be positive");
382 const bool& debug=
false)
const;
393 const bool& debug=
false);
404 #endif // TF_FILTER_H_VERSION (includeguard)
tfxx::Handle< BasicFilter > Tfilterhandle
handle to pass filters
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
take each sample to the power of a given exponent
GaussianNoise(const double &a)
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
square signal
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
set values selected by index
remove value of first sample from series
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
square root of signal
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
add offset to sample values
force signal to a baseline.The filter removes a linear trend from the time series. After this operation the average in the index ranges [i1,i2] and [i3,i4] will vanish. The index range limits are
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
error handling for libtsxx (prototypes)
RemoveTrend(const int &n)
Add random Gaussian noise.
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
remove average
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
add Gaussian noise
ForceToBase(const int &n1, const int &n2, const int &ne)
Tfilterhandle make_filter(std::string s, const bool &debug)
function to generate filter class
Structure to hold the data samples of a series together with header information to form a time series...
base class for all filter classes (prototypes)
static double Mf
definition of static member data is required
All stuff in this library will be placed within namespace ts.
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
hanning taper
#define TSXX_assert(C, M)
Check an assertion and report by throwing an exception.
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
remove trend
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
scale sample values
set sample values selected by index
SetByIndex(const int &n1, const int &n2, const double &v)
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
Normalize(const double &v)
RemoveAverage(const int &n)
restore value of first sample to series
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
rectification
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
force signal to baseline
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
append additional samples
void print_help(std::ostream &os)
print usage information
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
cumulative sum
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
reverse time series