37 for(
int i=0;
i<x.
size();
i++) E+=x[
i]*x[
i]*dt;
38 cout <<
"E = " << E << endl;
44 double dF = R/(2*level);
51 cout <<
"WDM Decomposition Level : " << w.
getLevel()
52 <<
" dF : " << dF <<
" Hz " <<
" dT : " << 1000*dT <<
" ms " <<endl;
58 cout <<
"WDM Decomposition Level : " <<
M <<
" Layers " << L << endl;
61 int nTC = w.
size()/(
M+1)/mF;
63 double* map00 = wdm->
pWWS;
64 double* map90 = map00 + (mF-1)*(
M+1)*nTC;
70 for(
int j=0;
j<
M+1;
j++) {
79 for(
int i=0;
i<xx.
size();
i++) E+=xx[
i]*xx[
i];
82 cout <<
"E = " << E << endl;
93 WTS->
hist2D->GetYaxis()->SetRangeUser(flow, fhigh);
97 cout << endl <<
"Dump WDM Scalogram : " << fname << endl << endl;
108 sprintf(gtitle,
"WDM : Original(black) - After WDM Forward/Inverse Tranform(Red)");
109 plot->
gtitle(gtitle,
"time(sec)",
"amplitude");
virtual size_t size() const
void gtitle(TString title="", TString xtitle="", TString ytitle="")
virtual void rate(double r)
cout<< "skymap size : "<< L<< endl;for(int l=0;l< L;l++) sm.set(l, l);sm > const_cast< char * >("skymap.dat")
wavearray< double > GetSGQ(double frequency, double Q)
cout<< endl;cout<< "ts size = "<< ts.size()<< " ts rate = "<< ts.rate()<< endl;tf.Forward(ts, wdm);int levels=tf.getLevel();cout<< "tf size = "<< tf.size()<< endl;double dF=tf.resolution();double dT=1./(2 *dF);cout<< "rate(hz) : "<< RATE<< "\t layers : "<< nLAYERS<< "\t dF(hz) : "<< dF<< "\t dT(ms) : "<< dT *1000.<< endl;int itime=TIME_PIXEL_INDEX;int ifreq=FREQ_PIXEL_INDEX;int index=(levels+1)*itime+ifreq;double time=itime *dT;double freq=(ifreq >0)?ifreq *dF:dF/4;cout<< endl;cout<< "PIXEL TIME = "<< time<< " sec "<< endl;cout<< "PIXEL FREQ = "<< freq<< " Hz "<< endl;cout<< endl;wavearray< double > x
WDM< double > wdm(nLAYERS, nLAYERS, 6, 10)
plot gtitle(gtitle,"frequency (Hz)","strain/#sqrt{Hz}")
virtual void start(double s)
void plot(wavearray< double > &, char *=NULL, int=1, double=0., double=0., bool=false, float=0., float=0., bool=false, float=0., bool=false)
int getLayer(wavearray< DataType_t > &w, double n)
param: n - layer number
wavearray< double > GetWNB(double frequency, double bandwidth, double duration, int seed=0, bool mode=0)
void goptions(char *opt=NULL, int col=1, double t1=0., double t2=0., bool fft=false, float f1=0., float f2=0., bool psd=false, float t3=0., bool oneside=false)
WDM< double > wdtf(lev, 2 *lev, 6, 10)
void Forward(int n=-1)
param: wavelet - n is number of steps (-1 means full decomposition)
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
WaveDWT< DataType_t > * pWavelet
wavearray< double > GetRD(double frequency, double tau, double iota, bool polarization=0)
void Inverse(int n=-1)
param: n - number of steps (-1 means full reconstruction)