Class Dct1dDirect.Float

java.lang.Object
imagingbook.spectral.dct.Dct1dDirect
imagingbook.spectral.dct.Dct1dDirect.Float
All Implemented Interfaces:
Dct1d, Dct1d.Float
Enclosing class:
Dct1dDirect

public static class Dct1dDirect.Float extends Dct1dDirect implements Dct1d.Float
One-dimensional DCT implementation using float data.
  • Constructor Details

    • Float

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

    • forward

      public void forward(float[] g)
      Description copied from interface: Dct1d.Float
      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.Float
      Parameters:
      g - the signal to be transformed (modified)
    • inverse

      public void inverse(float[] G)
      Description copied from interface: Dct1d.Float
      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.Float
      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