net.sarcommand.fft
Class DFT1

java.lang.Object
  extended by net.sarcommand.fft.FourierTransform
      extended by net.sarcommand.fft.FourierTransform1D
          extended by net.sarcommand.fft.DFT1

public class DFT1
extends FourierTransform1D

Author:
A. O. Ergueven, Torsten Heup
Implements a naive onedimensional discrete fourier transformation.

Constructor Summary
DFT1()
          Creates a new instance of this DFT.
 
Method Summary
protected  void buildVandermondeMatrix(int width)
          Creates the fourier matrix used for transformation.
 void inverseTransform(ComplexSignal signal, net.sarcommand.util.ProgressNotifier notifier)
          Applies an inverse dft to the specified signal.
 void transform(ComplexSignal signal, net.sarcommand.util.ProgressNotifier notifier)
          Applies a forward dft to the signal.
 
Methods inherited from class net.sarcommand.fft.FourierTransform
computeUnityRoot, convertToBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DFT1

public DFT1()
Creates a new instance of this DFT.

Method Detail

buildVandermondeMatrix

protected void buildVandermondeMatrix(int width)
Creates the fourier matrix used for transformation.

Parameters:
width - This signal's length.

transform

public void transform(ComplexSignal signal,
                      net.sarcommand.util.ProgressNotifier notifier)
Applies a forward dft to the signal.

Specified by:
transform in class FourierTransform
Parameters:
signal - Signal to transform.
notifier - Notifier

inverseTransform

public void inverseTransform(ComplexSignal signal,
                             net.sarcommand.util.ProgressNotifier notifier)
Applies an inverse dft to the specified signal.

Specified by:
inverseTransform in class FourierTransform
Parameters:
signal - Signal to transform
notifier - Notifier