Class Dft1dFast.Float

java.lang.Object
imagingbook.spectral.dft.Dft1dFast
imagingbook.spectral.dft.Dft1dFast.Float
All Implemented Interfaces:
Dft1d, Dft1d.Float
Enclosing class:
Dft1dFast

public static class Dft1dFast.Float extends Dft1dFast implements Dft1d.Float
One-dimensional FFT implementation using float data.
  • Constructor Details

    • Float

      public Float(int M, ScalingMode sm)
      Constructor using a specific scaling mode.
      Parameters:
      M - the size of the data vectors
      sm - the scaling mode
    • Float

      public Float(int M)
      Constructor using the default scaling mode.
      Parameters:
      M - the size of the data vectors
  • Method Details

    • forward

      public void forward(float[] gRe, float[] gIm)
      Description copied from interface: Dft1d.Float
      Performs an "in-place" DFT forward transformation on the supplied 1D float data. The input signal is replaced by the associated DFT spectrum.
      Specified by:
      forward in interface Dft1d.Float
      Parameters:
      gRe - real part of the signal (modified)
      gIm - imaginary part of the signal (modified)
    • inverse

      public void inverse(float[] GRe, float[] GIm)
      Description copied from interface: Dft1d.Float
      Performs an "in-place" DFT inverse transformation on the supplied 1D float spectrum. The input spectrum is replaced by the associated signal.
      Specified by:
      inverse in interface Dft1d.Float
      Parameters:
      GRe - real part of the spectrum (modified)
      GIm - imaginary part of the spectrum (modified)
    • transform

      public void transform(float[] inRe, float[] inIm, boolean forward)
      Description copied from interface: Dft1d.Float
      Transforms the given 1D arrays 'in-place'. Separate arrays of identical size must be supplied for the real and imaginary parts of the signal (forward) or spectrum (inverse), neither of which may be null.
      Specified by:
      transform in interface Dft1d.Float
      Parameters:
      inRe - real part of the input signal or spectrum (modified)
      inIm - imaginary part of the input signal or spectrum (modified)
      forward - forward transformation if true, inverse transformation if false
    • getSize

      public int getSize()
      Description copied from interface: Dft1d
      Returns the size of this DFT (length of data vectors).
      Specified by:
      getSize in interface Dft1d
      Returns:
      the size of this DFT
    • getScalingMode

      public ScalingMode getScalingMode()
      Description copied from interface: Dft1d
      Returns the scaling mode of this DFT (see ScalingMode).
      Specified by:
      getScalingMode in interface Dft1d
      Returns:
      the scaling mode of this DFT.