4243444546474849505152
for (j=0;j<N;j++) data[j]=cos(2.0*pi*64*j/N); sp.adddataseg(data,hann); } spec=sp.spectrum(); freq=sp.frequencies(); // for (i=0;i<M+1;i++) // System.out.printf(freq[i] << " " << spec[i]); maxs=-1.0; for (i=0;i<M+1;i++) {
8586878889909192939495
for (j=0;j<N;j++) data[j]=cos(2.0*pi*64.5*j/N); sp2.adddataseg(data,hann); } spec=sp2.spectrum(); freq=sp2.frequencies(); // for (i=0;i<10;i++) // System.out.printf(spec[maxi-i]/maxs << " " << spec[maxi+i+1]/maxs); // test for symmetry sbeps=1.e-2;
4445464748495051525354
for (j=0;j<N;j++) data[j]=cos(2.0*pi*64*j/N); sp.adddataseg(data,bartlett); } spec=sp.spectrum(); freq=sp.frequencies(); // for (i=0;i<M+1;i++) // System.out.printf(freq[i] << " " << spec[i]); maxs=-1.0; for (i=0;i<M+1;i++) {
4344454647484950515253
for (j=0;j<N;j++) data[j]=cos(2.0*pi*64*j/N); sp.adddataseg(data,square); } spec=sp.spectrum(); freq=sp.frequencies(); // for (i=0;i<M+1;i++) // System.out.printf(freq[i] << " %f\n", spec[i]); maxs=-1.0; for (i=0;i<M+1;i++) {
8485868788899091929394
for (j=0;j<N;j++) data[j]=cos(2.0*pi*64.5*j/N); sp2.adddataseg(data,square); } spec=sp2.spectrum(); freq=sp2.frequencies(); // for (i=0;i<10;i++) // System.out.printf(spec[maxi-i]/maxs << " %f\n", spec[maxi+i+1]/maxs); // test for symmetry sbeps=1.e-2;
for (j=0;j<N;j++) data[j]=cos(2.0*pi*64*j/N); sp.adddataseg(data,welch); } spec=sp.spectrum(); freq=sp.frequencies(); // for (i=0;i<M+1;i++) // System.out.printf(freq[i] << " %f\n", spec[i]); maxs=-1.0; for (i=0;i<M+1;i++) {
9899100101102103104105106107108
for (j=0;j<N;j++) data[j]=cos(2.0*pi*64.5*j/N); sp2.adddataseg(data,welch); } spec=sp2.spectrum(); freq=sp2.frequencies(); // for (i=0;i<10;i++) // System.out.printf(spec[maxi-i]/maxs << " %f\n", spec[maxi+i+1]/maxs); sbeps=5.e-3; localflag=false;
4647484950515253545556
// System.out.printf(data[j]); } sp.adddataseg(data,window); // Note: text should clarify this usage } spec=sp.spectrum(); freq=sp.frequencies(); // for (i=0;i<M+1;i++) // System.out.printf(freq[i] << " %f\n", spec[i]); maxs=-1.0; j=0;