java.lang.Object
imagingbook.spectral.dft.Dft1dDirect
imagingbook.spectral.dft.Dft1dDirect.Double
- All Implemented Interfaces:
Dft1d,Dft1d.Double
- Enclosing class:
Dft1dDirect
One-dimensional DFT implementation using
double data.-
Nested Class Summary
Nested classes/interfaces inherited from class imagingbook.spectral.dft.Dft1dDirect
Dft1dDirect.Double, Dft1dDirect.FloatNested classes/interfaces inherited from interface imagingbook.spectral.dft.Dft1d
Dft1d.Double, Dft1d.Float -
Constructor Summary
ConstructorsConstructorDescriptionDouble(int M) Constructor using the default scaling mode.Double(int M, ScalingMode sm) Constructor using a specific scaling mode. -
Method Summary
Modifier and TypeMethodDescriptionvoidforward(double[] gRe, double[] gIm) Performs an "in-place" 1D DFT forward transformation on the supplieddoubledata.Returns the scaling mode of this DFT (seeScalingMode).intgetSize()Returns the size of this DFT (length of data vectors).voidinverse(double[] GRe, double[] GIm) Performs an "in-place" 1D DFT inverse transformation on the supplieddoublespectrum.voidtransform(double[] inRe, double[] inIm, boolean forward) Transforms the given 1D arrays 'in-place'.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface imagingbook.spectral.dft.Dft1d
getScalingMode, getSizeMethods inherited from interface imagingbook.spectral.dft.Dft1d.Double
checkSize
-
Constructor Details
-
Double
Constructor using a specific scaling mode.- Parameters:
M- the size of the data vectorssm- the scaling mode
-
Double
Constructor using the default scaling mode.- Parameters:
M- the size of the data vectors
-
-
Method Details
-
forward
Description copied from interface:Dft1d.DoublePerforms an "in-place" 1D DFT forward transformation on the supplieddoubledata. The input signal is replaced by the associated DFT spectrum.- Specified by:
forwardin interfaceDft1d.Double- Parameters:
gRe- real part of the signal (modified)gIm- imaginary part of the signal (modified)
-
inverse
Description copied from interface:Dft1d.DoublePerforms an "in-place" 1D DFT inverse transformation on the supplieddoublespectrum. The input spectrum is replaced by the associated signal.- Specified by:
inversein interfaceDft1d.Double- Parameters:
GRe- real part of the spectrum (modified)GIm- imaginary part of the spectrum (modified)
-
transform
Description copied from interface:Dft1d.DoubleTransforms 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 benull.- Specified by:
transformin interfaceDft1d.Double- Parameters:
inRe- real part of the input signal or spectrum (modified)inIm- imaginary part of the input signal or spectrum (modified)forward- forward transformation iftrue, inverse transformation iffalse
-
getSize
public int getSize()Description copied from interface:Dft1dReturns the size of this DFT (length of data vectors). -
getScalingMode
Description copied from interface:Dft1dReturns the scaling mode of this DFT (seeScalingMode).- Specified by:
getScalingModein interfaceDft1d- Returns:
- the scaling mode of this DFT.
-