Subversion Repositories svnkaklik

Rev

Rev 1055 | Blame | Compare with Previous | Last modification | View Log | Download

set terminal png
set output "chodba_utlum.png"

set xlabel "vzdalenost [m]"
set ylabel "intenzita signalu [dBm]"

#f(x) = Lo + 10*n*log(x/d0) + a
g(x) = k*x + a
q(x) = j*x + b
h(x) = l*x + c


fit g(x) "chodba1" using (-30.0/151.0 * $1+31.0):($3) via k,a
#fit h(x) "chodba3" using (-30.0/111.0 * $1+30.0):($3) via l,c

set xrange [1:50]

l=k
c=a - 3*0.65


plot "chodba1" using (-30.0/151.0 * $1+31.0):($3) with points title "1.pokus", "chodba2" using (-30.0/126.0 * $1+30.0):($3) with points title "2.pokus", "chodba3" using (-30.0/111.0 * $1+30.0):($3) with points title "3.pokus", g(x) title "mean", h(x) title "90% probability treshold" 


set autoscale x

fit q(x) "mistnost1" using (-12.0/58.0 * $1+17.0):($3) via j,b

set output "mistnost.png"
plot "mistnost1" using (-12.0/58.0 * $1+17.0):($3) with points notitle, q(x) 


set xlabel "cas [s]"
set ylabel "intenzita signalu [dBm]"

bin(x,size) = floor(1.0*x/size)*size

set output "chodba_braun.png"
plot "Chodba_s_lidmi.dat" using (0.2 * $1):($3) with points notitle 
set output "chodba_braun_rozdeleni.png"
plot "Chodba_s_lidmi.dat" using (bin($3, 1.0)):($3) with boxes notitle