API Reference
The package is separated into three groups of procedures. The Fourier Transforms perform 1D and 2D discrete Fourier transforms (DFT’s) with mixed precision floating point operations. For DFT conventions in 1D and 2D, see mp_dft and mp_dft2, respectively. The Sampling partition DFT frequencies and sample signals at partial sets of frequencies. The Inversion procedures invert sampled integer signals. The inversion algorithms implement the efficient dynammic programming algorithms in [LV].
Fourier Transforms
|
Compute the 1D discrete Fourier transform of a signal. |
|
Compute the 1D inverse discrete Fourier transform of a signal. |
|
Compute the 2D discrete Fourier transform of a signal. |
|
Compute the 2D inverse discrete Fourier transform of a signal. |
Sampling
|
Returns a dictionary of classes of DFT coefficient frequencies for a 1D integer signal. |
|
Returns a dictionary of classes of DFT coefficient frequencies for a 2D integer matrix. |
|
Selects a set of DFT coefficient frequencies. |
|
Selects a set of DFT coefficient frequencies. |
|
Sample DFT coefficients of a 1D integer signal. |
|
Sample DFT coefficients of a 2D integer signal. |
Inversion
|
Invert an integer signal from limited DFT spectrum. |
|
Invert an integer matrix from limited DFT spectrum. |
|
Python-exception-derived object raised by inversion functions. |
Examples
For examples, see the various functions. For all examples, it is assumed that the modules binvert, numpy, and gmpy2 have been imported.