net.innig.math
Class Fourier1D

java.lang.Object
  extended by net.innig.math.Fourier1D

public class Fourier1D
extends java.lang.Object

Simple one-dimensional FFT, with some very basic optimizations. Not particularly high-tech.


Method Summary
static Fourier1D create(int size)
          Factory method allows future etpansion to optimized subclasses (e.g.
 void inverseTransform(double[] fromReal, double[] fromImag, double[] toReal, double[] toImag)
           
 void transform(double[] fromReal, double[] fromImag, double[] toReal, double[] toImag)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Fourier1D create(int size)
Factory method allows future etpansion to optimized subclasses (e.g. for non-powers of two).


transform

public void transform(double[] fromReal,
                      double[] fromImag,
                      double[] toReal,
                      double[] toImag)

inverseTransform

public void inverseTransform(double[] fromReal,
                             double[] fromImag,
                             double[] toReal,
                             double[] toImag)