From 1750388ec049a784b2cc9d7df4e0ded46c420d77 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Wed, 27 Oct 2010 11:18:56 -0400 Subject: [PATCH] fix labels and update model --- doc/lqi-pdr/plot.asy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/lqi-pdr/plot.asy b/doc/lqi-pdr/plot.asy index b73626b3a..93c97c3b3 100644 --- a/doc/lqi-pdr/plot.asy +++ b/doc/lqi-pdr/plot.asy @@ -9,11 +9,11 @@ int[] lqi = sequence(100); int f (int lqi) { - if(lqi < 6) { - return 0; - } else if(lqi < 11) { + if(lqi <= 6) { + return (int)((real)lqi*.8); + } else if(lqi <= 11) { return (lqi-6)*18; - } else if (lqi < 30) { + } else if (lqi <= 30) { return (int)((real)(lqi-11) * 0.5 + 90); } else { return 100; @@ -27,5 +27,5 @@ draw(graph(lqi,f_lqi), red); ylimits(0,100); xlimits(0,100); -xaxis("\rm Output Current (A)",BottomTop,LeftTicks("$%.1f$",10,begin=false,end=false,extend=true,pTick=dotted)); -yaxis("\rm Output Power (W)",LeftRight,RightTicks("$%#.1f$",8,begin=false,end=false,extend=true,pTick=dotted, ptick=dotted)); +xaxis("\rm LQI",BottomTop,LeftTicks("$%.1f$",10,begin=false,end=false,extend=true,pTick=dotted)); +yaxis("\rm Packet Deliver Ratio (\%)",LeftRight,RightTicks("$%#.1f$",8,begin=false,end=false,extend=true,pTick=dotted, ptick=dotted));