Class Dct1dFast.Double

java.lang.Object
imagingbook.spectral.dct.Dct1dFast
imagingbook.spectral.dct.Dct1dFast.Double
All Implemented Interfaces:
Dct1d, Dct1d.Double
Enclosing class:
Dct1dFast

public static class Dct1dFast.Double extends Dct1dFast implements Dct1d.Double
One-dimensional DCT implementation using double data.
  • Constructor Details

    • Double

      public Double(int M)
      Constructor.
      Parameters:
      M - the data size
  • Method Details

    • forward

      public void forward(double[] g)
      Description copied from interface: Dct1d.Double
      Performs an "in-place" 1D DCT forward transformation on the supplied data. The input signal is replaced by the associated DFT spectrum.
      Specified by:
      forward in interface Dct1d.Double
      Parameters:
      g - the signal to be transformed (modified)
    • inverse

      public void inverse(double[] G)
      Description copied from interface: Dct1d.Double
      Performs an "in-place" 1D DCT inverse transformation on the supplied spectrum. The input spectrum is replaced by the associated signal.
      Specified by:
      inverse in interface Dct1d.Double
      Parameters:
      G - the spectrum to be transformed (modified)
    • getSize

      public int getSize()
      Description copied from interface: Dct1d
      Returns the size of this DCT (length of data vectors).
      Specified by:
      getSize in interface Dct1d
      Returns:
      the size of this DCT