3334353637383940414243
// Test Hann System.out.println("Testing Hann"); Spectreg sp=new Spectreg(M); Hann hann = new Hann(N); for (i=0;i<K;i++) { // Generate a data set for (j=0;j<N;j++) data[j]=cos(2.0*pi*64*j/N);
3637383940414243444546
// Test Spectolap System.out.println("Testing Spectolap"); Spectolap sp=new Spectolap(M); Hann hann=new Hann(N); for (i=0;i<K;i++) { // Generate a data set for (j=0;j<M;j++) { jj=M*(i%2)+j; data[j]=10.0*exp(-1.*SQR(jj-M)/SQR(N/8))*