Documentation of 'jsci.maths.FourierMath' Java class
FourierMath
jsci.maths

Class FourierMath

  • All Implemented Interfaces:
    NumericalConstants


    public final class FourierMath
    extends AbstractMath
    implements NumericalConstants
    The Fourier math library. This class cannot be subclassed or instantiated because all methods are static. Use sort(transform(sort(...))) for the discrete analogue of the continuous Fourier transform, and sort(inverseTransform(sort(...))) for the inverse transform.
    • Method Detail

      • transform

        public static Complex[] transform(Complex[] data)
        Fourier transform (2Pi convention).
        Parameters:
        data - an array containing the positive time part of the signal followed by the negative time part.
        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 (2Pi convention).
        Parameters:
        dataReal - an array containing the positive real time part of the signal followed by the negative real time part.
        dataImag - an array containing the positive imaginary time part of the signal followed by the negative imaginary time part.
        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 (2Pi convention).
        Parameters:
        data - an array containing the positive time part of the signal followed by the negative time part.
        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 (-2Pi convention).
        Parameters:
        data - an array containing positive frequencies in ascending order followed by negative frequencies in ascending order.
        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 (-2Pi convention).
        Parameters:
        dataReal - an array containing positive real frequencies in ascending order followed by negative real frequencies in ascending order.
        dataImag - an array containing positive imaginary frequencies in ascending order followed by negative imaginary frequencies in ascending order.
        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 (-2Pi convention).
        Parameters:
        data - an array containing positive frequencies in ascending order followed by negative frequencies in ascending order.
        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.
      • sort

        public static double[] sort(double[] input)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.