Fourier Transforms

genalyzer.fft(a, *args)

Compute FFT

Args:

a (ndarray) : Input array of type complex128, float64, int16, int32, or int64

args (list)Additional arguments
  1. If a is of type complex128 or float64, then compute the FFT of interleaved normalized samples with the following interpretation.

    navg (int) : FFT averaging number

    nfft (int) : FFT size

    window (Window): Window

    In this case, if a is not complex, then a is interpreted to contain interleaved I/Q samples with the following interpretation.

  2. If a is of type float64, then compute the FFT of split normalized samples.

    q (float64) : Quadrature component

    navg (int) : FFT averaging number

    nfft (int) : FFT size

    window (Window): Window

    In this case, a is interpreted to be the In-phase component.

  3. If a is of type int16, int32, or int64, then compute the FFT of interleaved quantized samples with the following interpretation.

    n (int) : Resolution (Bitwidth of a)

    navg (int) : FFT averaging number

    nfft (int) : FFT size

    window (Window): Window

    fmt (CodeFormat): Code format

    In this case, a is interpreted to contain interleaved quantized samples.

  4. If a is of type int16, int32, or int64, then compute the FFT of split quantized samples with the following interpretation.

    q (int16, int32, or int64) : Quadrature component

    n (int) : Resolution (Bitwidth of a)

    navg (int) : FFT averaging number

    nfft (int) : FFT size

    window (Window): Window

    fmt (CodeFormat): Code format

    In this case, a is interpreted to to be the In-phase component.

Returns:

out (ndarray) : FFT result of type float64 with interleaved Re/Im components

genalyzer.rfft(a, *args)

Compute Real-FFT

Args:

a (ndarray) : Input array of type float64, int16, int32, or int64

args (list)Additional arguments
  1. If a is of type float64, then compute the real-FFT of normalized samples with the following interpretation.

    navg (int) : FFT averaging number

    nfft (int) : FFT size

    window (Window): Window

    scale (RfftScale): Scaling mode

  2. If a is of type int16, int32, or int64, then compute the FFT of interleaved quantized samples with the following interpretation.

    n (int) : Resolution (Bitwidth of a)

    navg (int) : FFT averaging number

    nfft (int) : FFT size

    window (Window): Window

    fmt (CodeFormat): Code format

    scale (RfftScale): Scaling mode

Returns:

out (ndarray) : FFT result of type float64 with interleaved Re/Im components