Package com.nr.sp

Examples of com.nr.sp.Spectolap.spectrum()


        data[j]=10.0*exp(-1.*SQR(jj-M)/SQR(N/8))*
          (cos(2.0*pi*32*jj/N)+cos(2.0*pi*64*jj/N));
      }
      sp.adddataseg(data,hann);
    }
    spec=sp.spectrum();
    freq=sp.frequencies();
//    for (i=0;i<M+1;i++)
//      System.out.printf(setw(20) << freq[i] << " " << setw(20) << spec[i]);

    freq1=32.0/N;
View Full Code Here


      jj=j % N;
      data2[j]=10.0*exp(-1.*SQR(jj-M)/SQR(N/8))*
        (cos(2.0*pi*32*jj/N)+cos(2.0*pi*64*jj/N));
    }
    sp2.addlongdata(data2,hann);
    spec=sp2.spectrum();
    freq=sp2.frequencies();
//    for (i=0;i<M+1;i++)
//      System.out.printf(setw(20) << freq[i] << " " << setw(20) << spec[i]);

    j=0;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.