Package jfftw

Examples of jfftw.FFTWReal


    for(int i = 0; i < d.length; i++) {
        d[i] = 10.0*Math.random();
    }

    //          Make the FFTWReal class to do the work
    FFTWReal fftw = new FFTWReal();

    //          Take out of place forward FFT,
    //          return a double[] which hold Hermition
    //          complex array in interleaved format.
    double ft[] = fftw.threeDimensionalForward(width,height,depth,d);
   
    //          Reconstruct, again out of place, back to real space
    double recon[] = fftw.threeDimensionalBackward(width,height,depth,ft);
   
    //          Scale the inverse by 1/N to (no scale in FFTW)
    //          Use ArrayUtil class to do the work.
    ArrayUtil.mult(recon,1.0/(width*height*depth));

 
View Full Code Here


    for(int i = 0; i < d.length; i++) {
        d[i] = (float)(10.0*Math.random());
    }

    //          Make the FFTWReal class to do the work
    FFTWReal fftw = new FFTWReal();

    //          Take out of place forward FFT,
    //          return a double[] which hold Hermition
    //          complex array in interleaved format.
    float ft[] = fftw.threeDimensionalForward(width,height,depth,d);
   
    //          Reconstruct, again out of place, back to real space
    float recon[] = fftw.threeDimensionalBackward(width,height,depth,ft);
   
    //          Scale the inverse by 1/N to (no scale in FFTW)
    //          Use ArrayUtil class to do the work.
    ArrayUtil.mult(recon,(float)(1.0/(width*height*depth)));
    // for (int i=0;i<recon.length;i++) {
View Full Code Here

      10, 11, 12, 13, 14,
      15, 16, 17, 18, 19,
      20, 21, 22, 23, 24,
    };

    FFTWReal fftwReal = new FFTWReal();
   
    dInterm = fftwReal.twoDimensionalForward(5, 5, dData);
    dResult = fftwReal.twoDimensionalBackward(5, 5, dInterm);

    for (int i=0;i<dResult.length;i++) {
      assertEquals(dData[i], dResult[i]/25.0, 0.000001);
    }
View Full Code Here

      10, 11, 12, 13, 14,
      15, 16, 17, 18, 19,
      20, 21, 22, 23, 24,
    };

    FFTWReal fftwReal = new FFTWReal();
   
    fInterm = fftwReal.twoDimensionalForward(5, 5, fData);
    fResult = fftwReal.twoDimensionalBackward(5, 5, fInterm);

    for (int i=0;i<fResult.length;i++) {
      assertEquals(fData[i], fResult[i]/25.0, 0.000001);
    }
View Full Code Here

        -62.5000, 0, 0,
        -62.5000, 0, 0
    };

   
    FFTWReal fftwReal = new FFTWReal();
   
    double [] interm = fftwReal.twoDimensionalForward(5,5, data);

    /*
    for (int i=0;i<dest.length;i++) {
      assertEquals(dest[i], result[i], 0.000001);
    }
     */ 

    double [] result = fftwReal.twoDimensionalBackward(5,5, interm);

    for (int i=0;i<dest.length;i++) {
      assertEquals(data[i], result[i]/25.0, 0.000001);
    }
    // Guarda los planes
View Full Code Here

        -62.5000F, 0, 0,
        -62.5000F, 0, 0
    };

   
    FFTWReal fftwReal = new FFTWReal();
   
    float [] interm = fftwReal.twoDimensionalForward(5,5, data);

    /*
    for (int i=0;i<dest.length;i++) {
      assertEquals(dest[i], result[i], 0.000001);
    }
     */ 

    float [] result = fftwReal.twoDimensionalBackward(5,5, interm);

    for (int i=0;i<dest.length;i++) {
      assertEquals(data[i], result[i]/25.0, 0.000001);
    }
    // Guarda los planes
View Full Code Here

   */
  @Before
  public void setUp() throws Exception {
   
    File fWisdom = null;
    fftwReal = new FFTWReal();
   
    if (wisdomFilename != null) {

      fWisdom = new java.io.File( wisdomFilename );

View Full Code Here

TOP

Related Classes of jfftw.FFTWReal

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.