25 #ifndef WAVECOMPLEX_HH 26 #define WAVECOMPLEX_HH 69 inline double real()
const {
return re; }
70 inline double imag()
const {
return im; }
71 inline double arg()
const {
return atan2(
im,
re); }
74 inline void set(
double x,
double y) {
re=
x;
im=
y;
return; }
86 #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<< "\ layers : "<< nLAYERS<< "\ dF(hz) : "<< dF<< "\ 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 &)
virtual wavecomplex & operator/=(const wavecomplex &)
virtual wavecomplex & operator+=(const wavecomplex &)
virtual wavecomplex operator*(const wavecomplex &)