IntR

class pylayers.antprop.interactions.IntR(data=array([], dtype=float64), idx=[], slab={})[source]

Bases: pylayers.antprop.interactions.Inter

Reflexion interaction class

Methods Summary

eval([fGHz])

evaluation of reflexion interactions

Methods Documentation

eval(fGHz=array([2.4]))[source]

evaluation of reflexion interactions

fGHz : np.array (,Nf)

self.A : evaluated interaction

>>> from pylayers.antprop.rays import *
>>> # generate input data
>>> theta1 = 0.1
>>> theta2 = 0.4
>>> si01 = 4
>>> si02 = 0.6
>>> sir1 = 3.15
>>> sir2 = 3.4
>>> data1=np.array((theta1,si01,sir1))
>>> data2=np.array((theta2,si02,sir2))
>>> # store input data to Instance
>>> R = IntR(data1,idx=0)
>>> R.data
array([ 0.1 ,  4.  ,  3.15])
>>> R.stack(data2,idx=1)
>>> R.uslidx=1
>>> R.dusl['WOOD']=[0,1]
>>> # evaluation parameters (normally read from config.ini)
>>> R.f = np.array([  2.,  11.])
>>> R.nf = len(R.f)
>>> R.olf = np.ones((R.nf))
>>> # evaluation
>>> eR=R.eval()
>>> # examples
>>> ninter = len(R.idx)
>>> np.shape(eR)
(1, 2, 2, 2)
>>> eR[0,0,0]
array([-0.0413822-0.12150975j,  0.0000000+0.j        ])

data = np.array((ninter x [theta,si,st]))