Check consistency of data members.
Check consistency of time series data passed to the STFBaseEngine with respect to
- number of samples
- sampling interval
Definition at line 159 of file stfinvbase.cc.
References CWaveformHeader::dt, dt(), Mpairs, Mstf, Mtriples, CWaveformHeader::n, CTripleHeader::sampling, stfinv::Waveform::sampling, stfinv::Waveform::series, and STFINV_assert.
Referenced by initialize().
164 "inconsistent number of samples");
165 const double tolerance=1.e-4;
168 stfinv::Tvectoroftriples::const_iterator I=
Mtriples.begin();
173 "inconsistent number of samples");
175 "inconsistent number of samples");
177 "inconsistent number of samples");
179 "inconsistent number of samples");
181 "inconsistent values of sampling interval");
187 stfinv::Tvectorofpairs::const_iterator I=
Mpairs.begin();
192 "inconsistent number of samples");
194 "inconsistent number of samples");
196 "inconsistent number of samples");
198 "inconsistent values of sampling interval");
stfinv::Waveform Mstf
source correction filter.
stfinv::Tvectoroftriples Mtriples
Waveform triples.
#define STFINV_assert(C, M)
Check an assertion and report by throwing an exception.
int n
Number of pairs in the array.
double dt() const
return sampling interval
stfinv::Tvectorofpairs Mpairs
Waveform pairs.