java.lang.Object
imagingbook.spectral.dft.Dft1dFast
imagingbook.spectral.dft.Dft1dFast.Float
- All Implemented Interfaces:
Dft1d,Dft1d.Float
- Enclosing class:
Dft1dFast
One-dimensional FFT implementation using
float data.-
Nested Class Summary
Nested classes/interfaces inherited from class imagingbook.spectral.dft.Dft1dFast
Dft1dFast.Double, Dft1dFast.FloatNested classes/interfaces inherited from interface imagingbook.spectral.dft.Dft1d
Dft1d.Double, Dft1d.Float -
Constructor Summary
ConstructorsConstructorDescriptionFloat(int M) Constructor using the default scaling mode.Float(int M, ScalingMode sm) Constructor using a specific scaling mode. -
Method Summary
Modifier and TypeMethodDescriptionvoidforward(float[] gRe, float[] gIm) Performs an "in-place" DFT forward transformation on the supplied 1Dfloatdata.Returns the scaling mode of this DFT (seeScalingMode).intgetSize()Returns the size of this DFT (length of data vectors).voidinverse(float[] GRe, float[] GIm) Performs an "in-place" DFT inverse transformation on the supplied 1Dfloatspectrum.voidtransform(float[] inRe, float[] 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.Float
checkSize
-
Constructor Details
-
Float
Constructor using a specific scaling mode.- Parameters:
M- the size of the data vectorssm- the scaling mode
-
Float
Constructor using the default scaling mode.- Parameters:
M- the size of the data vectors
-
-
Method Details
-
forward
Description copied from interface:Dft1d.FloatPerforms an "in-place" DFT forward transformation on the supplied 1Dfloatdata. The input signal is replaced by the associated DFT spectrum.- Specified by:
forwardin interfaceDft1d.Float- Parameters:
gRe- real part of the signal (modified)gIm- imaginary part of the signal (modified)
-
inverse
Description copied from interface:Dft1d.FloatPerforms an "in-place" DFT inverse transformation on the supplied 1Dfloatspectrum. The input spectrum is replaced by the associated signal.- Specified by:
inversein interfaceDft1d.Float- Parameters:
GRe- real part of the spectrum (modified)GIm- imaginary part of the spectrum (modified)
-
transform
Description copied from interface:Dft1d.FloatTransforms 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.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 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.
-