mpi.fruitfly.fft
Class pffft

java.lang.Object
  extended by mpi.fruitfly.fft.pffft

public class pffft
extends java.lang.Object


Field Summary
static boolean DONOTOVERWRITE
           
static boolean DONOTSCALE
           
static boolean OVERWRITE
           
static boolean SCALE
           
 
Constructor Summary
pffft()
           
 
Method Summary
static void complexConjugate(float[] complex)
           
static float[] computeLogPowerSpectrum(float[] complex)
           
static float[] computePhaseCorrelationMatrix(float[] fft1, float[] fft2, boolean inPlace)
           
static float[] computePhaseSpectrum(float[] complex)
           
static float[] computePowerSpectrum(float[] complex)
           
static float[] divide(float[] complexA, float[] complexB, boolean overwriteA)
           
static float divideComplexImg(float a, float b, float c, float d)
           
static float divideComplexReal(float a, float b, float c, float d)
           
static int getZeroPadingSizeForInPlace(int width)
           
static float[] logNormalizeComplexVectors(float[] complex)
           
static float[] multiply(float[] complexA, float[] complexB, boolean overwriteA)
           
static float multiplyComplexImg(float a, float b, float c, float d)
           
static float multiplyComplexReal(float a, float b, float c, float d)
           
static void normalizeComplexVectorsToUnitVectors(float[] complex)
           
static float[] pffft1D(float[] values, boolean scale)
           
static void pffft1DInPlace(float[] values, int nfft)
           
static FloatArray2D pffft2D(FloatArray2D values, boolean scale)
           
static void pffft2DInPlace(FloatArray2D values, int nfftX, boolean scale)
           
static FloatArray2D pffft2DMT(FloatArray2D values, boolean scale)
           
static FloatArray3D pffft3D(FloatArray3D values, boolean scale)
           
static FloatArray3D pffft3DMT(FloatArray3D values, boolean scale)
           
static float[] pffftInv1D(float[] values, int nfft)
           
static FloatArray2D pffftInv2D(FloatArray2D values, int nfft)
           
static FloatArray3D pffftInv3D(FloatArray3D values, int nfft)
           
static void rearrangeFFT(FloatArray2D values)
           
static void rearrangeFFT(FloatArray3D values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCALE

public static boolean SCALE

DONOTSCALE

public static boolean DONOTSCALE

OVERWRITE

public static boolean OVERWRITE

DONOTOVERWRITE

public static boolean DONOTOVERWRITE
Constructor Detail

pffft

public pffft()
Method Detail

computePowerSpectrum

public static float[] computePowerSpectrum(float[] complex)

computeLogPowerSpectrum

public static float[] computeLogPowerSpectrum(float[] complex)

computePhaseSpectrum

public static float[] computePhaseSpectrum(float[] complex)

logNormalizeComplexVectors

public static float[] logNormalizeComplexVectors(float[] complex)

normalizeComplexVectorsToUnitVectors

public static void normalizeComplexVectorsToUnitVectors(float[] complex)

computePhaseCorrelationMatrix

public static float[] computePhaseCorrelationMatrix(float[] fft1,
                                                    float[] fft2,
                                                    boolean inPlace)

getZeroPadingSizeForInPlace

public static int getZeroPadingSizeForInPlace(int width)

pffft1DInPlace

public static void pffft1DInPlace(float[] values,
                                  int nfft)

pffft1D

public static float[] pffft1D(float[] values,
                              boolean scale)

pffftInv1D

public static float[] pffftInv1D(float[] values,
                                 int nfft)

pffft2DMT

public static FloatArray2D pffft2DMT(FloatArray2D values,
                                     boolean scale)

pffft2D

public static FloatArray2D pffft2D(FloatArray2D values,
                                   boolean scale)

pffftInv2D

public static FloatArray2D pffftInv2D(FloatArray2D values,
                                      int nfft)

pffftInv3D

public static FloatArray3D pffftInv3D(FloatArray3D values,
                                      int nfft)

rearrangeFFT

public static void rearrangeFFT(FloatArray2D values)

rearrangeFFT

public static void rearrangeFFT(FloatArray3D values)

pffft2DInPlace

public static void pffft2DInPlace(FloatArray2D values,
                                  int nfftX,
                                  boolean scale)

pffft3DMT

public static FloatArray3D pffft3DMT(FloatArray3D values,
                                     boolean scale)

pffft3D

public static FloatArray3D pffft3D(FloatArray3D values,
                                   boolean scale)

complexConjugate

public static void complexConjugate(float[] complex)

multiplyComplexReal

public static float multiplyComplexReal(float a,
                                        float b,
                                        float c,
                                        float d)

multiplyComplexImg

public static float multiplyComplexImg(float a,
                                       float b,
                                       float c,
                                       float d)

multiply

public static float[] multiply(float[] complexA,
                               float[] complexB,
                               boolean overwriteA)

divideComplexReal

public static float divideComplexReal(float a,
                                      float b,
                                      float c,
                                      float d)

divideComplexImg

public static float divideComplexImg(float a,
                                     float b,
                                     float c,
                                     float d)

divide

public static float[] divide(float[] complexA,
                             float[] complexB,
                             boolean overwriteA)