TS++ library: time series library

◆ psdapply()

template<class C >
void ts::tapers::Taper::psdapply ( c) const

apply taper to series container c for PSD calculation.

inline function for template argument

Definition at line 171 of file tapers.h.

References init(), psdnorm(), and value().

172  {
173  this->init(c.f(), c.l());
174  for (int i=c.f(); i<=c.l(); ++i)
175  { c(i) *= this->value(i)/this->psdnorm(); }
176  } // template<class C> void Taper::psdapply(C c)
virtual double psdnorm() const =0
return normalization for PSD calculation. The taper coefficients have to be devided by the return va...
virtual double value(const int &i) const =0
virtual void init(const int &f, const int &l) const =0
Here is the call graph for this function: