39 #define STFINV_STFINVIDENTITY_CC_VERSION \ 40 "STFINV_STFINVIDENTITY_CC V1.3" 45 #include <aff/functions/sqrsum.h> 46 #include <aff/seriesoperators.h> 55 =
"scale with amplitude factor";
75 return(
"STFEngineIdentity");
96 double recording_sqrsum=0.;;
97 double synthetic_sqrsum=0.;;
98 for (
unsigned int i=0; i<this->
nreceivers(); ++i)
106 fac = std::sqrt(recording_sqrsum/synthetic_sqrsum);
112 stf(0)=fac/this->
dt();
113 for (
unsigned int i=0; i<this->
nreceivers(); ++i)
120 for (
unsigned int i=0; i<this->
npairs(); ++i)
135 stfinv::tools::report_engine_ID<STFEngineIdentity>(os);
146 stfinv::tools::report_engine_ID<STFEngineIdentity>(os);
bool Mscaleenergy
scale energy
static const char *const ID
ID used to select thsi engine.
unsigned int npairs() const
return number of additional signals to be convolved
unsigned int nreceivers() const
return number of receiver signals in use
virtual const char * name() const
return name of engine
double weight(const unsigned int &i) const
return weight for signal at receiver i
char stfinvidentity_summary_usage[]
Root namespace of library.
virtual void usage(std::ostream &os=std::cout) const
print detailed description
static const char *const description
short description of this engine
static void classusage(std::ostream &os=std::cout)
print detailed description
std::string parameter(const std::string &key, const std::string &defvalue="false") const
return the value of a parameters
Tseries::Tcoc recording(const unsigned int &i) const
return recorded data at receiver i
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
char stfinvidentity_description_usage[]
double dt() const
return sampling interval
void initialize()
initialize work space
just find a scaling factor (prototypes)
virtual void help(std::ostream &os=std::cout) const
print online help
virtual void exec()
Start engine.
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.
static void classhelp(std::ostream &os=std::cout)
print online help