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

Provides a Cosine taper. More...

#include <tapers.h>

Inheritance diagram for ts::tapers::Cosine:
Collaboration diagram for ts::tapers::Cosine:

Public Member Functions

 Cosine (const double &f=0.1)
 
 ~Cosine ()
 
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

int Mf
 
int Ml
 
int Msf
 
double Mfac
 
double Mfrac
 

Detailed Description

Provides a Cosine taper.

Parameters
ftaper fraction (0<=f<=0.5) for f=0.5 the taper effectively is a Hanning taper

Definition at line 93 of file tapers.h.


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