Fourier Transforms¶
- genalyzer.fft(a, *args)¶
Compute FFT
- Args:
a
(ndarray
) : Input array of typecomplex128
,float64
,int16
,int32
, orint64
args
(list
)Additional argumentsIf
a
is of typecomplex128
orfloat64
, then compute the FFT of interleaved normalized samples with the following interpretation.navg
(int
) : FFT averaging numbernfft
(int
) : FFT sizewindow
(Window
): WindowIn this case, if
a
is not complex, then a is interpreted to contain interleaved I/Q samples with the following interpretation.If
a
is of typefloat64
, then compute the FFT of split normalized samples.q
(float64
) : Quadrature componentnavg
(int
) : FFT averaging numbernfft
(int
) : FFT sizewindow
(Window
): WindowIn this case,
a
is interpreted to be the In-phase component.If
a
is of typeint16
,int32
, orint64
, then compute the FFT of interleaved quantized samples with the following interpretation.n
(int
) : Resolution (Bitwidth of a)navg
(int
) : FFT averaging numbernfft
(int
) : FFT sizewindow
(Window
): Windowfmt
(CodeFormat
): Code formatIn this case,
a
is interpreted to contain interleaved quantized samples.If
a
is of typeint16
,int32
, orint64
, then compute the FFT of split quantized samples with the following interpretation.q
(int16
,int32
, orint64
) : Quadrature componentn
(int
) : Resolution (Bitwidth ofa
)navg
(int
) : FFT averaging numbernfft
(int
) : FFT sizewindow
(Window
): Windowfmt
(CodeFormat
): Code formatIn this case,
a
is interpreted to to be the In-phase component.
- Returns:
out
(ndarray
) : FFT result of typefloat64
with interleaved Re/Im components
- genalyzer.rfft(a, *args)¶
Compute Real-FFT
- Args:
a
(ndarray
) : Input array of typefloat64
,int16
,int32
, orint64
args
(list
)Additional argumentsIf
a
is of typefloat64
, then compute the real-FFT of normalized samples with the following interpretation.navg
(int
) : FFT averaging numbernfft
(int
) : FFT sizewindow
(Window
): Windowscale
(RfftScale
): Scaling modeIf
a
is of typeint16
,int32
, orint64
, then compute the FFT of interleaved quantized samples with the following interpretation.n
(int
) : Resolution (Bitwidth of a)navg
(int
) : FFT averaging numbernfft
(int
) : FFT sizewindow
(Window
): Windowfmt
(CodeFormat
): Code formatscale
(RfftScale
): Scaling mode
- Returns:
out
(ndarray
) : FFT result of typefloat64
with interleaved Re/Im components