51 inline double real()
const {
return re; }
52 inline double imag()
const {
return im; }
53 inline double arg()
const {
return atan2(
im,
re); }
68 #endif // WAVECOMPLEX_HH
virtual wavecomplex operator/(const wavecomplex &)
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
virtual wavecomplex operator+(const wavecomplex &)
wavecomplex & operator=(const wavecomplex &)
virtual wavecomplex & operator*=(const wavecomplex &)
virtual wavecomplex & operator-=(const wavecomplex &)
virtual wavecomplex operator-(const wavecomplex &)
void set(double x, double y)
virtual wavecomplex & operator/=(const wavecomplex &)
virtual wavecomplex & operator+=(const wavecomplex &)
virtual wavecomplex operator*(const wavecomplex &)