Waveform

class pylayers.signal.waveform.Waveform(**kwargs)[source]

Bases: dict

st : time domain sf : frequency domain sfg : frequency domain integrated

eval showpsd ip_generic fromfile fromfile2 read gui show

Methods Summary

bandwidth([th_ratio, Npt])

Determine effective bandwidth of the waveform.

eval()

evaluate waveform

fromfile()

get the measurement waveform from WHERE1 measurement campaign

fromfile2()

get the measurement waveform from WHERE1 measurement campaign

gui()

Get the Waveform parameter

info()

display information about waveform

ip_generic()

Create an energy normalized Gaussian impulse (Usignal)

read(config)

Parameters

ref156([beta])

reference pulse of IEEE 802.15.6 UWB standard

show([fig])

show waveform in time and frequency domain

showpsd([Tpns])

show psd

Methods Documentation

bandwidth(th_ratio=10000, Npt=100)[source]

Determine effective bandwidth of the waveform.

th_ratiofloat

threshold ratio threshold = max(abs())/th_ratio

Npt : Number of points

eval()[source]

evaluate waveform

The \(\lambda/4*\pi\) factor which is necessary to get the proper budget link ( from the Friis formula) is introduced in this function.

fromfile()[source]

get the measurement waveform from WHERE1 measurement campaign

This function is not yet generic

>>> from pylayers.signal.waveform import *
>>> wav = Waveform(typ='W1compensate')
>>> wav.show()
fromfile2()[source]

get the measurement waveform from WHERE1 measurement campaign

This function is not yet generic

>>> from pylayers.signal.waveform import *
>>> wav = Waveform(typ='W1offset')
>>> wav.show()
gui()[source]

Get the Waveform parameter

info()[source]

display information about waveform

>>> from pylayers.signal.waveform import *
>>> w = Waveform(typ='generic',WGHz=0.499,fcGHz=4.49,fsGHz=100,threshdB=3,twns=30)
>>> w.show()
>>> plt.show()
ip_generic()[source]

Create an energy normalized Gaussian impulse (Usignal)

ip_generic(self,parameters)

read(config)[source]

config : ConfigParser object

w : waveform

ref156(beta=0.5)[source]

reference pulse of IEEE 802.15.6 UWB standard

betafloat

roll-off factor

Tns = 1/499.2MHz

From P8O2.15.6/D02 December 2010 Formula 96 p 215

show(fig=[])[source]

show waveform in time and frequency domain

fig : figure

showpsd(Tpns=1000)[source]

show psd

Tpns : float