Package DSP.fft

Examples of DSP.fft.RDFT


    nfft = 1;
    while ( nfft < clength ) {
      log2nfft++;
      nfft *= 2;
    }
    fft  = new RDFT( log2nfft );
  
    shiftRegister = new double[ nfft ];
    kernel        = new double[ nfft ];
    segment       = new double[ nfft ];
    transform     = new double[ nfft ];
View Full Code Here


    while ( nfft < n ) {
      nfft *= 2;
      log2nfft++;
    }
   
    RDFT    fft = new RDFT( log2nfft );
    double[] tmp       = new double[ nfft ];
    double[] transform = new double[ nfft ];
    double[] kernel    = new double[ nfft ];
   
    System.arraycopy( x, 0, tmp, 0, x.length );
    fft.evaluate( tmp, transform  );
   
    Arrays.fill( tmp, 0.0f );
    System.arraycopy( coefficients, 0, tmp, 0, coefficients.length );
    fft.evaluate( tmp, kernel );
   
    RDFT.dftProduct( kernel, transform, 1.0f );
    fft.evaluateInverse( transform, tmp );
   
    // trim off trailing zeros
   
    kernel = new double[ n ];
    System.arraycopy( tmp, 0, kernel, 0, n );
View Full Code Here

    double[] x        = new double[ nfft ];
    for ( int i = 0;  i <= nfft/2;  i++ ) {
      X[i] = (double) LP.evaluate( Math.cos( 2.0*Math.PI*i/nfft ) );
    }
   
    RDFT dft = new RDFT( log2nfft );
    dft.evaluateInverse( X, x );
   
    return x;
  }
View Full Code Here

TOP

Related Classes of DSP.fft.RDFT

Copyright © 2018 www.massapicom. 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.