37 #define TF_TAPERS_CC_VERSION \ 58 Mfac=3.1415926535897931/(l-f);
63 double s=std::sin((i-
Mf)*
Mfac);
142 const double retval=std::sqrt(3./8.);
151 "Cosine taper fraction is outside meaningful range");
159 Mfac=0.5*3.1415926535897931/double(
Msf);
172 const double retval=1.;
173 TSXX_abort(
"Cosine::psdnorm() is not yet defined");
190 : Mt1(t1), Mt2(t2), Mt3(t3), Mt4(t4)
194 "FourPoint taper times are not in increasing order");
210 double F=
static_cast<double>(f);
211 double L=
static_cast<double>(l);
236 double t=
static_cast<double>(i);
270 const double retval=1.;
271 TSXX_abort(
"FourPoint::psdnorm() is not yet defined");
double value(const int &i) const
#define TSXX_abort(M)
Abort and give a message.
void init(const int &f, const int &l) const
error handling for libtsxx (prototypes)
double Mti1
times in units of sampling interval relative to sample index zero
Cosine(const double &f=0.1)
void init(const int &f, const int &l) const
All stuff in this library will be placed within namespace ts.
#define TSXX_assert(C, M)
Check an assertion and report by throwing an exception.
double psdnorm() const
return normalization for PSD calculation. The taper coefficients have to be devided by the return va...
double Mt1
times in units of time series duration relative to first sample
basic modules of time series library in C++ (prototypes)
FourPoint(const double &t1=0., const double &t2=0.1, const double &t3=0.9, const double &t4=1.)
double value(const int &i) const
double psdnorm() const
return normalization for PSD calculation. The taper coefficients have to be devided by the return va...
void init(const int &f, const int &l) const
double value(const int &i) const
provide signal tapers (prototypes)