java.lang.Object
imagingbook.spectral.dct.Dct1dDirect
imagingbook.spectral.dct.Dct1dDirect.Double
- All Implemented Interfaces:
Dct1d,Dct1d.Double
- Enclosing class:
Dct1dDirect
One-dimensional DCT implementation using
double data.-
Nested Class Summary
Nested classes/interfaces inherited from class imagingbook.spectral.dct.Dct1dDirect
Dct1dDirect.Double, Dct1dDirect.FloatNested classes/interfaces inherited from interface imagingbook.spectral.dct.Dct1d
Dct1d.Double, Dct1d.Float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforward(double[] g) Performs an "in-place" 1D DCT forward transformation on the supplied data.intgetSize()Returns the size of this DCT (length of data vectors).voidinverse(double[] G) Performs an "in-place" 1D DCT inverse transformation on the supplied spectrum.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface imagingbook.spectral.dct.Dct1d.Double
checkSize
-
Constructor Details
-
Double
Constructor.- Parameters:
M- the data size
-
-
Method Details
-
forward
Description copied from interface:Dct1d.DoublePerforms an "in-place" 1D DCT forward transformation on the supplied data. The input signal is replaced by the associated DFT spectrum.- Specified by:
forwardin interfaceDct1d.Double- Parameters:
g- the signal to be transformed (modified)
-
inverse
Description copied from interface:Dct1d.DoublePerforms an "in-place" 1D DCT inverse transformation on the supplied spectrum. The input spectrum is replaced by the associated signal.- Specified by:
inversein interfaceDct1d.Double- Parameters:
G- the spectrum to be transformed (modified)
-
getSize
public int getSize()Description copied from interface:Dct1dReturns the size of this DCT (length of data vectors).
-