TS++ library: time series library
|
Provides a 4-point taper. More...
#include <tapers.h>
Public Member Functions | |
FourPoint (const double &t1=0., const double &t2=0.1, const double &t3=0.9, const double &t4=1.) | |
~FourPoint () | |
template<class C > | |
void | apply (C c) const |
apply taper to series container c. More... | |
template<class C > | |
void | psdapply (C c) const |
apply taper to series container c for PSD calculation. More... | |
Private Member Functions | |
void | init (const int &f, const int &l) const |
double | value (const int &i) const |
double | psdnorm () const |
return normalization for PSD calculation. The taper coefficients have to be devided by the return value . More... | |
Private Attributes | |
double | Mt1 |
times in units of time series duration relative to first sample More... | |
double | Mt2 |
double | Mt3 |
double | Mt4 |
double | Mti1 |
times in units of sampling interval relative to sample index zero More... | |
double | Mti2 |
double | Mti3 |
double | Mti4 |
double | Mfac1 |
double | Mfac2 |
Provides a 4-point taper.
Provides a taper being defined by four times specified in units of the duration of the entire time series. The first sample is at t=0 and the last sample is at t=1.
t1 | taper equals zero for t<t1. |
t2 | taper increases with sin**2(x) with x=0 at t=t1 and x=pi/2 at t=t2 |
t3 | taper is one for t2 < t < t3 |
t4 | taper decreases with cos**2(x) with x=0 at t=t3 and x=pi/2 at t=t4; taper equals zero for t>t4. |
Default parameters define a 10% sine**2,osine**2 taper