Class FFT

java.lang.Object
de.das.encrypter.fourier.FFT

public class FFT extends Object
This class provides a method for performing the fast Fourier transform (FFT) and its inverse function.
  • Constructor Details

    • FFT

      public FFT()
  • Method Details

    • fft

      public static Complex[] fft(double[] src) throws Exception
      Performs a FFT.
      Parameters:
      src - the time course or similar input values.
      Returns:
      the resulting spectrum values.
      Throws:
      Exception - in case of any error.
    • ifft

      public static double[] ifft(Complex[] src) throws Exception
      Performs an invers FFT.
      Parameters:
      src - the complex spectrum values.
      Returns:
      the time course according to the given spectrum.
      Throws:
      Exception - in case of any error.