FHsignal

class pylayers.signal.bsignal.FHsignal(x=array([], dtype=float64), y=array([], dtype=float64), label=[])[source]

Bases: pylayers.signal.bsignal.FUsignal

FHsignal : Hermitian uniform signal in Frequency domain

ifft : inverse Fourier transform –> TUsignal unrex : unredundant extraction –> FUsignal

Methods Summary

ifft([ffts, centered])

Inverse Fourier Transform

unrex()

extraction of the non redundant part of a real signal expressed in the frequency domain

Methods Documentation

ifft(ffts=0, centered=True)[source]

Inverse Fourier Transform

fftsint

0 no fftshift (default) 1 apply fftshift

centered: boolean

a real TUsignal

>>> e  = TUsignal()
>>> e.EnImpulse(feGHz=200)
>>> E  = e.fft()
>>> ee = E.ifft()
>>> assert(abs(sum(e.y-ee.y).all())<1e-13)
unrex()[source]

extraction of the non redundant part of a real signal expressed in the frequency domain

>>> x = np.arange(0,6,1)
>>> y = np.arange(0,6,1)
>>> s = TUsignal(x,y)
>>> S = s.fft()
>>> U = S.unrex()