39 #ifndef TF_TAPERS_H_VERSION 41 #define TF_TAPERS_H_VERSION \ 60 void apply(C c)
const;
71 virtual double psdnorm()
const =0;
77 virtual void init(
const int& f,
const int& l)
const =0;
83 virtual double value(
const int& i)
const =0;
95 Cosine(
const double& f=0.1);
98 void init(
const int& f,
const int& l)
const;
99 double value(
const int& i)
const;
115 void init(
const int& f,
const int& l)
const;
116 double value(
const int& i)
const;
143 const double& t2=0.1,
144 const double& t3=0.9,
145 const double& t4=1.);
148 void init(
const int& f,
const int& l)
const;
149 double value(
const int& i)
const;
164 this->
init(c.f(), c.l());
165 for (
int i=c.f(); i<=c.l(); ++i)
166 { c(i) *= this->
value(i); }
173 this->
init(c.f(), c.l());
174 for (
int i=c.f(); i<=c.l(); ++i)
182 #endif // TF_TAPERS_H_VERSION (includeguard)
void apply(C c) const
apply taper to series container c.
double value(const int &i) const
Taper abstract base class.
void init(const int &f, const int &l) const
virtual double psdnorm() const =0
return normalization for PSD calculation. The taper coefficients have to be devided by the return va...
double Mti1
times in units of sampling interval relative to sample index zero
Cosine(const double &f=0.1)
virtual double value(const int &i) const =0
void init(const int &f, const int &l) const
virtual void init(const int &f, const int &l) const =0
All stuff in this library will be placed within namespace ts.
double psdnorm() const
return normalization for PSD calculation. The taper coefficients have to be devided by the return va...
void psdapply(C c) const
apply taper to series container c for PSD calculation.
double Mt1
times in units of time series duration relative to first sample
FourPoint(const double &t1=0., const double &t2=0.1, const double &t3=0.9, const double &t4=1.)
double value(const int &i) const
double psdnorm() const
return normalization for PSD calculation. The taper coefficients have to be devided by the return va...
void init(const int &f, const int &l) const
Provides a 4-point taper.
double value(const int &i) const
Provides a Hanning taper (no parameters):