Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TestWriteOperatorWavearray.C
Go to the documentation of this file.
1 {
2  wavearray<double> x(100);
3  for(int i=0;i<x.size();i++) x[i]=i;
4  // save wavearray in binary format
5  x >> const_cast<char*>("wavearray.dat");
6  // save wavearray in ascii format
7  x >> const_cast<char*>("wavearray.txt");
8  // save object wavearray in root format
9  x >> const_cast<char*>("wavearray.root");
10  exit(0);
11 }
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
i drho i
exit(0)