TS++ library: time series library

◆ value()

double ts::tapers::Hanning::value ( const int &  i) const
privatevirtual

returns taper value for sample index i. Private virtual function such that this function can only be accessed through the template function apply(). This way we ensure that the appropriate index range was set first.

Implements ts::tapers::Taper.

Definition at line 61 of file tapers.cc.

References Mf, and Mfac.

62  {
63  double s=std::sin((i-Mf)*Mfac);
64  return (s*s);
65  } // double Hanning::value(const int& i) const