39 #ifndef STFINV_STFINVBASE_H_VERSION 41 #define STFINV_STFINVBASE_H_VERSION \ 42 "STFINV_STFINVBASE_H V1.2" 47 #include<aff/series.h> 137 #define STFINV_baseillegal STFINV_abort("illegal call to abstract base class!") 214 const std::string& parameters);
225 const std::string& parameters);
241 virtual void help(std::ostream& os=std::cout)
const;
243 virtual void usage(std::ostream& os=std::cout)
const;
245 virtual const char*
name()
const;
247 static void classhelp(std::ostream& os=std::cout);
249 static void classusage(std::ostream& os=std::cout);
263 {
return (
Mpairs.size()); }
276 Tseries::Tcoc
recording(
const unsigned int& i)
const ;
278 Tseries::Tcoc
synthetic(
const unsigned int& i)
const ;
282 Tseries::Tcoc
series(
const unsigned int& i)
const ;
291 std::string
parameter(
const std::string& key,
293 const std::string& defvalue=
"false")
const;
303 double weight(
const unsigned int& i)
const 314 void initialize(
const std::string& parameters);
351 #endif // STFINV_STFINVBASE_H_VERSION (includeguard) bool parameterisset(const std::string &key) const
check is parameter was set by user
void checkseriesindex(const unsigned int &i) const
check for vaid index off additional time series pair
#define STFINV_baseillegal
Abort upon illegal call of base class function.
std::vector< stfinv::WaveformPair > Tvectorofpairs
Vector of pairs.
unsigned int npairs() const
return number of additional signals to be convolved
static void classhelp(std::ostream &os=std::cout)
print online help
unsigned int nreceivers() const
return number of receiver signals in use
void parseparameters(std::string parameters)
parse parameters and store them in Mparamap
double weight(const unsigned int &i) const
return weight for signal at receiver i
Root namespace of library.
virtual void help(std::ostream &os=std::cout) const
print online help
int Mverbose
verbose level
stfinv::Waveform Mstf
source correction filter.
void initialize(const std::string ¶meters)
initialize base class
handle a parameter configuration string (prototypes)
unsigned int nsamples() const
return number of samples used in time series
std::string parameter(const std::string &key, const std::string &defvalue="false") const
return the value of a parameters
stfinv::Tvectoroftriples Mtriples
Waveform triples.
handle error conditions in libstfinv (prototypes)
Tseries::Tcoc recording(const unsigned int &i) const
return recorded data at receiver i
stfinv::Waveform run()
Start engine and return reference to source correction filter.
virtual void usage(std::ostream &os=std::cout) const
print detailed description
Tseries::Tcoc series(const unsigned int &i) const
return synthetic data of pair i
static void classusage(std::ostream &os=std::cout)
print detailed description
Tseries::Tcoc synthetic(const unsigned int &i) const
return synthetic data at receiver i
Tseries convolvedseries(const unsigned int &i) const
return synthetic data convolved with stf for pair i
virtual ~STFBaseEngine()
abstract base requires virtual destructor
double dt() const
return sampling interval
aff::Series< double > Mweights
Weights.
stfinv::Tvectorofpairs Mpairs
Waveform pairs.
void checkreceiverindex(const unsigned int &i) const
check for vaid receiver index
virtual const char * name() const
return name of engine
Abstract base class for engines to derive source correction filter.
virtual void exec()
Virtual function to run engine.
STFBaseEngine(const stfinv::Tvectoroftriples &triples, const stfinv::Waveform &stf, const std::string ¶meters)
Constructor.
std::vector< stfinv::WaveformTriple > Tvectoroftriples
Vector of triples.
void setweights(const double &k)
Set weights according to exponent.
void checkconsistency() const
Check consistency of data members.
stfinv::tools::Tparamap Mparamap
Parameter map.
Tseries convolvedsynthetic(const unsigned int &i) const
return synthetic data convolved with stf at receiver i
Tseries stf() const
return source correction filter series
aff::Series< Tvalue > Tseries
Type of sample values.
aff::Series< double > weights() const
return weights array