35 #define TF_TRANSITIONMIXER_CC_VERSION \ 36 "TF_TRANSITIONMIXER_CC V1.0" 51 directwaveseries.setlastindex(par.
nsamples+
52 directwaveseries.f()-1);
56 singlevelocityseries.setlastindex(par.
nsamples+
57 singlevelocityseries.f()-1);
62 cout <<
" offset " << par.
offset <<
"m: ";
67 series=singlevelocityseries;
70 cout <<
"100% single velocity transformation" << endl;
75 series=directwaveseries;
78 cout <<
"100% direct wave transformation" << endl;
85 const double svf=1.-dwf;
89 cout << 100.*svf <<
"% single velocity and " 90 << 100.*dwf <<
"% direct wave transformation" << endl;
93 aff::Browser<Tseries> DWB(directwaveseries);
94 aff::Browser<Tseries> SVB(singlevelocityseries);
95 aff::Iterator<Tseries> SI(series);
96 while (DWB.valid() && SVB.valid() && SI.valid())
98 (*SI) = dwf*(*DWB) + svf*(*SVB);
Ttimeseries::Tseries Tseries
prototypes and structs for lisousi (prototypes)
TFourier::Tseries transitionmixer(TFourier::Tseries singlevelocityseries, TFourier::Tseries directwaveseries, const Parameters &par, const Options &opt)
int nsamples
number of samples
lisousi functions (prototypes)
double offset
either epicentral distance or hypocentral distance.