Go to the documentation of this file.00001 import numpy as np, math
00002 import pylab as pl
00003
00004 SENSITIVITY = -80
00005 THRESHOLD = -18
00006
00007
00008
00009
00010
00011
00012 crossover_alpha = SENSITIVITY - THRESHOLD
00013 crossover_Prdr = THRESHOLD - crossover_alpha
00014
00015
00016
00017
00018 print 'Crossover Point:\n\talpha: %2.2f\n\tPrdr: %2.2f' % (crossover_alpha, crossover_Prdr)
00019
00020 prdr = np.linspace( 0, 50 )
00021
00022 alpha_3 = 0.5 * ( SENSITIVITY - prdr )
00023 alpha_4 = THRESHOLD - prdr
00024
00025 f = pl.figure( figsize=(12,6) )
00026 pl.axes([0.1,0.1,0.65,0.8])
00027
00028 f3 = pl.plot( prdr, alpha_3, 'g', linewidth = 3.0 )
00029 pl.hold( True )
00030 f4 = pl.plot( prdr, alpha_4, 'r', linewidth = 3.0 )
00031
00032
00033
00034 pl.legend((f3,f4),
00035 ('$P^{inc}_{rdr}$ > %d dBm' % (SENSITIVITY), '$P^{inc}_{tag}$ > %d dBm' % (THRESHOLD)),
00036 loc=(1.03,0.2))
00037 pl.xlabel( '$P_{rdr}$ (dBm)' )
00038 pl.ylabel( '$\\alpha$ (dBm)' )
00039 pl.savefig('forward_link_limit.png')
00040 pl.show()
00041
00042
00043