Beispiel #1
0
def fftshift(a, axes=None):
    '''Swap half-spaces
    
    End up with zero frequency component at centre position

    axes -- list of axes to swap and if None then all axes swapped

    '''
    return _fft.fftshift(a, axes)
Beispiel #2
0
def ifftshift(a, axes=None):
    '''Swaps back half-spaces
    
    End up with zero frequency component is at origin

    axes -- list of axes to swap and if None then all axes swapped 

    '''
    return _fft.ifftshift(a, axes)
Beispiel #3
0
def fftshift(a, axes=None):
    '''Swap half-spaces
    
    End up with zero frequency component at centre position

    axes -- list of axes to swap and if None then all axes swapped

    '''
    return _fft.fftshift(a, axes)
Beispiel #4
0
def ifftshift(a, axes=None):
    '''Swaps back half-spaces
    
    End up with zero frequency component is at origin

    axes -- list of axes to swap and if None then all axes swapped 

    '''
    return _fft.ifftshift(a, axes)
Beispiel #5
0
def fftfreq(n, d=1.0):
    '''Sample frequencies for DFT
    n -- number of samples
    d -- sample spacing
    '''
    return _fft.sampleFrequencies(n, d)
Beispiel #6
0
def ifftn(a, s=None, axes=None):
    '''Perform inverse nD FFT of shape s along given axes'''
    return _fft.ifftn(a, s, axes)
Beispiel #7
0
def fftn(a, s=None, axes=None):
    '''Perform nD FFT of shape s along given axes'''
    return _fft.fftn(a, s, axes)
Beispiel #8
0
def ifft2(a, s=None, axes=(-2,-1)):
    '''Perform inverse 2D FFT of shape s along given axes'''
    return _fft.ifft2(a, s, axes)
Beispiel #9
0
def fft2(a, s=None, axes=(-2,-1)):
    '''Perform 2D FFT of shape s along given axes'''
    return _fft.fft2(a, s, axes)
Beispiel #10
0
def ifft(a, n=None, axis=-1):
    '''Perform inverse 1D FFT along given axis'''
    axis = a.checkAxis(axis)
    if n is None:
        n = a.shape[axis]
    return _fft.ifft(a, n, axis)
Beispiel #11
0
def fftfreq(n, d=1.0):
    '''Sample frequencies for DFT
    n -- number of samples
    d -- sample spacing
    '''
    return _fft.sampleFrequencies(n, d)
Beispiel #12
0
def ifftn(a, s=None, axes=None):
    '''Perform inverse nD FFT of shape s along given axes'''
    return _fft.ifftn(a, s, axes)
Beispiel #13
0
def fftn(a, s=None, axes=None):
    '''Perform nD FFT of shape s along given axes'''
    return _fft.fftn(a, s, axes)
Beispiel #14
0
def ifft2(a, s=None, axes=(-2, -1)):
    '''Perform inverse 2D FFT of shape s along given axes'''
    return _fft.ifft2(a, s, axes)
Beispiel #15
0
def fft2(a, s=None, axes=(-2, -1)):
    '''Perform 2D FFT of shape s along given axes'''
    return _fft.fft2(a, s, axes)
Beispiel #16
0
def ifft(a, n=None, axis=-1):
    '''Perform inverse 1D FFT along given axis'''
    axis = a.checkAxis(axis)
    if n is None:
        n = a.shape[axis]
    return _fft.ifft(a, n, axis)