jass.generators
Class FFT

java.lang.Object
  extended by jass.generators.FFT

public class FFT
extends java.lang.Object


Field Summary
 int bits
           
 
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
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bits

public int bits
Constructor Detail

FFT

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

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

main

public static void main(java.lang.String[] argv)

doFFT

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

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