org.jscience.media.audio.dsp.monitors
Class FFT

java.lang.Object
  extended by org.jscience.media.audio.dsp.monitors.FFT

public class FFT
extends java.lang.Object

This is a Java implementation of the fast Fourier transform written by Jef Poskanzer. The copyright appears above.


Constructor Summary
FFT(int bits)
          FFT class constructor Initializes code for doing a fast Fourier transform
 
Method Summary
 void doFFT(double[] xr, double[] xi, boolean invFlag)
          A fast Fourier transform routine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FFT

public FFT(int bits)
FFT class constructor Initializes code for doing a fast Fourier transform

Parameters:
bits - bits is a power of two such that 2^b is the number of samples.
Method Detail

doFFT

public void doFFT(double[] xr,
                  double[] xi,
                  boolean invFlag)
A fast Fourier transform routine

Parameters:
xr - [] xr is the real part of the data to be transformed
xi - [] xi is the imaginary part of the data to be transformed (normally zero unless inverse transofrm is effect).
invFlag - invFlag which is true if inverse transform is being applied. false for a forward transform.