1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
set term pngcairo size 1000, 800
set grid
f1(x) = a1*sqrt(b1*x)
f2(x) = a2/(x-b2)+c2
f3(x) = a3*x+b3
fit f1(x) 's(n).plot' using 1:2 via a1, b1
fit f2(x) 'sn(n).plot' using 1:2 via a2, b2, c2
fit f3(x) 's2(n).plot' using 1:2 via a3, b3
set output 's(n).png'
set title "График зависимости дисперсии, стандартного отклонения и относительной флуктуации от среднего"
set y2tics
set xlabel "n, среднее"
set ylabel "s, s/n"
set y2label "s^2"
set key top lef
set yrange[0:7]
set y2range[0:35]
plot 's(n).plot' with lines title "s(n)" lc rgb('red') lw 2, \
'sn(n).plot' with lines title "s/n(n)" lc rgb('blue') lw 2, \
's2(n).plot' with lines title "s^2(n)" axes x1y2 lc rgb('green') lw 2, \
's(n).plot' lc 0 pt 2 lw 2 notitle,\
'sn(n).plot' lc 0 pt 2 lw 2 notitle,\
's2(n).plot' lc 0 pt 2 lw 2 axes x1y2 notitle,\
f1(x) lc 0 lw 1 dashtype(20,10) notitle,\
f2(x) lc 0 lw 1 dashtype(20,10) notitle,\
f3(x) axes x1y2 notitle lc 0 lw 1 dashtype(20,10)
|