TS++ library: time series library

◆ init()

void ts::tapers::FourPoint::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 199 of file tapers.cc.

References Mfac1, Mfac2, Mt1, Mt2, Mt3, Mt4, Mti1, Mti2, Mti3, and Mti4.

200  {
201  /*
202  TSXX_debug(true, "FourPoint::init",
203  TSXX_value(f) << " " <<
204  TSXX_value(l) << " " <<
205  TSXX_value(Mt1) << " " <<
206  TSXX_value(Mt2) << " " <<
207  TSXX_value(Mt3) << " " <<
208  TSXX_value(Mt4));
209  */
210  double F=static_cast<double>(f);
211  double L=static_cast<double>(l);
212  double T=L-F;
213  Mti1=F+T*Mt1;
214  Mti2=F+T*Mt2;
215  Mti3=F+T*Mt3;
216  Mti4=F+T*Mt4;
217  Mfac1=M_PI/(Mti2-Mti1);
218  Mfac2=M_PI/(Mti4-Mti3);
219  /*
220  TSXX_debug(true, "FourPoint::init",
221  TSXX_value(Mti1) << " " <<
222  TSXX_value(Mti2) << " " <<
223  TSXX_value(Mti3) << " " <<
224  TSXX_value(Mti4) << " " <<
225  TSXX_value(Mfac1) << " " <<
226  TSXX_value(Mfac2));
227  */
228  } // void FourPoint::init(const int& f, const int& l) const
double Mti1
times in units of sampling interval relative to sample index zero
Definition: tapers.h:154
double Mt1
times in units of time series duration relative to first sample
Definition: tapers.h:152