TS++ library: time series library
ts::tapers::FourPoint Class Reference

Provides a 4-point taper. More...

#include <tapers.h>

Inheritance diagram for ts::tapers::FourPoint:
Collaboration diagram for ts::tapers::FourPoint:

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 $w_k$ have to be devided by the return value $W$. 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
 

Detailed Description

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.

Parameters
t1taper equals zero for t<t1.
t2taper increases with sin**2(x) with x=0 at t=t1 and x=pi/2 at t=t2
t3taper is one for t2 < t < t3
t4taper 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

Definition at line 140 of file tapers.h.


The documentation for this class was generated from the following files: