- All Superinterfaces:
Dft1d
- All Known Implementing Classes:
Dft1dDirect.Float
,Dft1dFast.Float
- Enclosing interface:
- Dft1d
Sub-interface for 1D DFT implementations operating on
float
data.-
Nested Class Summary
Nested classes/interfaces inherited from interface imagingbook.spectral.dft.Dft1d
Dft1d.Double, Dft1d.Float
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
checkSize
(float[] re, float[] im) void
forward
(float[] gRe, float[] gIm) Performs an "in-place" DFT forward transformation on the supplied 1Dfloat
data.void
inverse
(float[] GRe, float[] GIm) Performs an "in-place" DFT inverse transformation on the supplied 1Dfloat
spectrum.void
transform
(float[] inRe, float[] inIm, boolean forward) Transforms the given 1D arrays 'in-place'.Methods inherited from interface imagingbook.spectral.dft.Dft1d
getScalingMode, getSize
-
Method Details
-
forward
Performs an "in-place" DFT forward transformation on the supplied 1Dfloat
data. The input signal is replaced by the associated DFT spectrum.- Parameters:
gRe
- real part of the signal (modified)gIm
- imaginary part of the signal (modified)
-
inverse
Performs an "in-place" DFT inverse transformation on the supplied 1Dfloat
spectrum. The input spectrum is replaced by the associated signal.- Parameters:
GRe
- real part of the spectrum (modified)GIm
- imaginary part of the spectrum (modified)
-
transform
Transforms 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
.- 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
-
checkSize
-