Fourier Transforms¶
- genalyzer.fft(a, *args)¶
Compute FFT
- Args:
a(ndarray) : Input array of typecomplex128,float64,int16,int32, orint64args(list)Additional argumentsIf
ais of typecomplex128orfloat64, 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
ais not complex, then a is interpreted to contain interleaved I/Q samples with the following interpretation.If
ais 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,
ais interpreted to be the In-phase component.If
ais 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,
ais interpreted to contain interleaved quantized samples.If
ais 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,
ais interpreted to to be the In-phase component.
- Returns:
out(ndarray) : FFT result of typefloat64with interleaved Re/Im components
- genalyzer.rfft(a, *args)¶
Compute Real-FFT
- Args:
a(ndarray) : Input array of typefloat64,int16,int32, orint64args(list)Additional argumentsIf
ais 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
ais 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 typefloat64with interleaved Re/Im components