org.jscience.mathematics.analysis.series
Class FourierMathUtils

java.lang.Object
  extended by org.jscience.mathematics.analysis.series.FourierMathUtils

public final class FourierMathUtils
extends java.lang.Object

The Fourier math library. This class cannot be subclassed or instantiated because all methods are static.


Method Summary
static Complex[] inverseTransform(Complex[] data)
          Inverse Fourier transform.
static Complex[] inverseTransform(double[] data)
          Inverse Fourier transform.
static Complex[] inverseTransform(double[] dataReal, double[] dataImag)
          Inverse Fourier transform.
static Complex[] sort(Complex[] output)
          Sorts the output from the Fourier transfom methods into ascending frequency/time order.
static Complex[] transform(Complex[] data)
          Fourier transform.
static Complex[] transform(double[] data)
          Fourier transform.
static Complex[] transform(double[] dataReal, double[] dataImag)
          Fourier transform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

transform

public static Complex[] transform(Complex[] data)
Fourier transform.

Returns:
an array containing positive frequencies in ascending order followed by negative frequencies in ascending order.

transform

public static Complex[] transform(double[] dataReal,
                                  double[] dataImag)
Fourier transform.

Returns:
an array containing positive frequencies in ascending order followed by negative frequencies in ascending order.

transform

public static Complex[] transform(double[] data)
Fourier transform.

Returns:
an array containing positive frequencies in ascending order followed by negative frequencies in ascending order.

inverseTransform

public static Complex[] inverseTransform(Complex[] data)
Inverse Fourier transform.

Returns:
an array containing the positive time part of the signal followed by the negative time part.

inverseTransform

public static Complex[] inverseTransform(double[] dataReal,
                                         double[] dataImag)
Inverse Fourier transform.

Returns:
an array containing the positive time part of the signal followed by the negative time part.

inverseTransform

public static Complex[] inverseTransform(double[] data)
Inverse Fourier transform.

Returns:
an array containing the positive time part of the signal followed by the negative time part.

sort

public static Complex[] sort(Complex[] output)
Sorts the output from the Fourier transfom methods into ascending frequency/time order.