TS++ library: time series library

◆ init()

void ts::tapers::Cosine::init ( const int &  f,
const int &  l 
) const
privatevirtual

function to set index range required by template function apply(); will be called prior to value to set ranges.

Implements ts::tapers::Taper.

Definition at line 154 of file tapers.cc.

References Mf, Mfac, Mfrac, Ml, and Msf.

155  {
156  Mf=f;
157  Ml=l;
158  Msf=int(0.5*Mfrac*double(Ml-Mf));
159  Mfac=0.5*3.1415926535897931/double(Msf);
160  } // void Cosine::init(const int& f, const int& l) const