Skip to main content

Module fractional_fft

Module fractional_fft 

Source
Expand description

Fractional Fourier transform (FRFT) utilities.

This module provides a fast one-dimensional FRFT implementation for slices of data implementing IsAnalytic. The implementation follows a chirp-FFT- chirp scheme, so the nontrivial cases run in O(N log N) time rather than the O(N^2) cost of a direct fractional-transform matrix multiply.

The order parameter alpha is measured in quarter-turns:

  • alpha = 0 gives the identity transform
  • alpha = 1 gives the unitary forward DFT
  • alpha = 2 gives time reversal
  • alpha = 3 gives the unitary inverse DFT

Intermediate values of alpha interpolate continuously between these cases. They sample the continuous FRFT’s chirp-convolution-chirp decomposition at spacing 1/√N (so the signal should occupy the central √N-wide interval of time and frequency), without the oversampling step of Ozaktas’s algorithm: the result approximates the continuous transform to about 1e-2 for well-sampled signals (the Gaussian e^{−πt²}, an eigenfunction of every order, is reproduced in magnitude to 1e-3 near the quarter turns and 6e-2 at alpha = 0.5), and energy is preserved to about 1%.

See the book entry Bluestein’s algorithm and the fractional Fourier transform.

Structs§

FractionalFft
Reusable FRFT planner/executor for a fixed transform size.

Functions§

frft
Convenience wrapper for one-shot FRFT evaluation.