IntT¶
-
class
pylayers.antprop.interactions.
IntT
(data=array([], dtype=float64), idx=[], slab={})[source]¶ Bases:
pylayers.antprop.interactions.Inter
Transmission interaction class
data = np.array(( i x [theta,si,st]))
Methods Summary
eval
([fGHz])evaluate transmission
Methods Documentation
-
eval
(fGHz=array([2.4]))[source]¶ evaluate transmission
>>> 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 >>> T = IntT(data1,idx=0) >>> T.data array([ 0.1 , 4. , 3.15]) >>> T.stack(data2,idx=1) >>> T.uslidx=1 >>> T.dusl['AIR']=[0,1]
>>> # evaluation parameters (normally read from config.ini) >>> T.f = np.array([ 2., 11.]) >>> T.nf = len(T.f) >>> T.olf = np.ones((T.nf))
>>> # evaluation >>> eT=T.eval()
>>> # examples >>> ninter = len(T.idx) >>> np.shape(eT) (1, 2, 2, 2) >>> eT[0,0] array([[ 1.+0.j, 0.+0.j], [ 0.+0.j, 1.+0.j]])
-