TBchannel

class pylayers.antprop.channel.TBchannel(x=array([], dtype=float64), y=array([], dtype=float64), label=[])[source]

Bases: pylayers.signal.bsignal.TBsignal

radio channel in non uniform delay domain

Methods Summary

Kfactor([threshold_dB, dB])

determine Ricean K factor

SalehValenzuela(**kwargs)

generic Saleh and Valenzuela Model

delays()

calculate delay parameters and orthogonality factor from cir

tau_Emax()

calculate the delay of max energy peak

tau_moy([alpha, threshold_dB, tau0])

calculate mean excess delay starting from delay tau0

tau_rms([alpha, threshold_dB, tau0])

calculate root mean square delay spread starting from delay tau_0

toFD([fGHz])

Transform to Frequency domain

Methods Documentation

Kfactor(threshold_dB=20, dB=True)[source]

determine Ricean K factor

Threshold_dBfloat

Only the energy above threshold is taken into account

dBboolean

if True value in dB is returned

SalehValenzuela(**kwargs)[source]

generic Saleh and Valenzuela Model

Lam : clusters Poisson Process parameter (ns) lam : rays Poisson Process parameter (ns) Gam : clusters exponential decay factor gam : rays exponential decay factor T : observation duration

>>> from pylayers.antprop.channel import *
>>> C=TBchannel()
>>> C.SalehValenzuela()
>>> f,a = C.stem()
delays()[source]

calculate delay parameters and orthogonality factor from cir

taum :

mean excess delay

delayspread

rms delay spread

of :

orthogonality factor

Neelesh Metha, Andreas Molish, Lary Greenstein “Orthogonality Factor in WCDMA Donlinks in Urban Macrocellular environments”

tau_Emax()[source]

calculate the delay of max energy peak

\[\max_{ au} y^{2}( au)\]
tau_moy(alpha=0.1, threshold_dB=20, tau0=0)[source]

calculate mean excess delay starting from delay tau0

alpha : float tau0 : float

tau_rms(alpha=0.1, threshold_dB=20, tau0=0)[source]

calculate root mean square delay spread starting from delay tau_0

alpha : float threshold : float

( delay interval is defined between \(\tau(\alpha)\) and \(\tau(1 -\alpha)\) )

tau0float

argument for specifying the delay start

\[\sqrt{\frac{\int_{\tau(\alpha)}^{\tau(1-\alpha)} (\tau-\tau_m)^{2} PDP(\tau) d\tau} {\int_{\tau(\alpha)}^{\tau(1-\alpha)} PDP(\tau) d\tau}}\]

TUsignal.ecdf TUsignal.tau_moy

toFD(fGHz=array([2., 2.01176471, 2.02352941, 2.03529412, 2.04705882, 2.05882353, 2.07058824, 2.08235294, 2.09411765, 2.10588235, 2.11764706, 2.12941176, 2.14117647, 2.15294118, 2.16470588, 2.17647059, 2.18823529, 2.2, 2.21176471, 2.22352941, 2.23529412, 2.24705882, 2.25882353, 2.27058824, 2.28235294, 2.29411765, 2.30588235, 2.31764706, 2.32941176, 2.34117647, 2.35294118, 2.36470588, 2.37647059, 2.38823529, 2.4, 2.41176471, 2.42352941, 2.43529412, 2.44705882, 2.45882353, 2.47058824, 2.48235294, 2.49411765, 2.50588235, 2.51764706, 2.52941176, 2.54117647, 2.55294118, 2.56470588, 2.57647059, 2.58823529, 2.6, 2.61176471, 2.62352941, 2.63529412, 2.64705882, 2.65882353, 2.67058824, 2.68235294, 2.69411765, 2.70588235, 2.71764706, 2.72941176, 2.74117647, 2.75294118, 2.76470588, 2.77647059, 2.78823529, 2.8, 2.81176471, 2.82352941, 2.83529412, 2.84705882, 2.85882353, 2.87058824, 2.88235294, 2.89411765, 2.90588235, 2.91764706, 2.92941176, 2.94117647, 2.95294118, 2.96470588, 2.97647059, 2.98823529, 3., 3.01176471, 3.02352941, 3.03529412, 3.04705882, 3.05882353, 3.07058824, 3.08235294, 3.09411765, 3.10588235, 3.11764706, 3.12941176, 3.14117647, 3.15294118, 3.16470588, 3.17647059, 3.18823529, 3.2, 3.21176471, 3.22352941, 3.23529412, 3.24705882, 3.25882353, 3.27058824, 3.28235294, 3.29411765, 3.30588235, 3.31764706, 3.32941176, 3.34117647, 3.35294118, 3.36470588, 3.37647059, 3.38823529, 3.4, 3.41176471, 3.42352941, 3.43529412, 3.44705882, 3.45882353, 3.47058824, 3.48235294, 3.49411765, 3.50588235, 3.51764706, 3.52941176, 3.54117647, 3.55294118, 3.56470588, 3.57647059, 3.58823529, 3.6, 3.61176471, 3.62352941, 3.63529412, 3.64705882, 3.65882353, 3.67058824, 3.68235294, 3.69411765, 3.70588235, 3.71764706, 3.72941176, 3.74117647, 3.75294118, 3.76470588, 3.77647059, 3.78823529, 3.8, 3.81176471, 3.82352941, 3.83529412, 3.84705882, 3.85882353, 3.87058824, 3.88235294, 3.89411765, 3.90588235, 3.91764706, 3.92941176, 3.94117647, 3.95294118, 3.96470588, 3.97647059, 3.98823529, 4., 4.01176471, 4.02352941, 4.03529412, 4.04705882, 4.05882353, 4.07058824, 4.08235294, 4.09411765, 4.10588235, 4.11764706, 4.12941176, 4.14117647, 4.15294118, 4.16470588, 4.17647059, 4.18823529, 4.2, 4.21176471, 4.22352941, 4.23529412, 4.24705882, 4.25882353, 4.27058824, 4.28235294, 4.29411765, 4.30588235, 4.31764706, 4.32941176, 4.34117647, 4.35294118, 4.36470588, 4.37647059, 4.38823529, 4.4, 4.41176471, 4.42352941, 4.43529412, 4.44705882, 4.45882353, 4.47058824, 4.48235294, 4.49411765, 4.50588235, 4.51764706, 4.52941176, 4.54117647, 4.55294118, 4.56470588, 4.57647059, 4.58823529, 4.6, 4.61176471, 4.62352941, 4.63529412, 4.64705882, 4.65882353, 4.67058824, 4.68235294, 4.69411765, 4.70588235, 4.71764706, 4.72941176, 4.74117647, 4.75294118, 4.76470588, 4.77647059, 4.78823529, 4.8, 4.81176471, 4.82352941, 4.83529412, 4.84705882, 4.85882353, 4.87058824, 4.88235294, 4.89411765, 4.90588235, 4.91764706, 4.92941176, 4.94117647, 4.95294118, 4.96470588, 4.97647059, 4.98823529, 5. ]))[source]

Transform to Frequency domain

fGHz,Nf

frequency in GHz

H : Tchannel