Version 1.0b1 API Documentation generated by Endo 2006-08-14
Discrete Fourier Transforms - helper.py
fftfreq(n, d=1.0) -> f
DFT sample frequencies
The returned float array contains the frequency bins in cycles/unit (with zero at the start) given a window length n and a sample spacing d:
f = [0,1,...,n/2-1,-n/2,...,-1]/(d*n) if n is even f = [0,1,...,(n-1)/2,-(n-1)/2,...,-1]/(d*n) if n is odd
fftshift(x, axes=None) -> y
Shift zero-frequency component to center of spectrum.
This function swaps half-spaces for all axes listed (defaults to all).
ifftshift(x,axes=None) - > y
Inverse of fftshift.
| Local name | Refers to |
|---|---|
| arange | numpy.core.numeric.arange |
| array | numpy.core.defchararray.array |
| asarray | numpy.core.defchararray.asarray |
| concatenate | numpy.core.numeric.concatenate |
| take | numpy.core.fromnumeric.take |
| types | types |