📄 alpha.sh
字号:
#!/bin/csh -fset max_alpha = 98set max_simulations = 20set increment1 = 1set max_nodes = 25set increment = 10set nodes = 25while ( $nodes <= $max_nodes ) set latfile = alpha_smoothing.lat.$nodes set gfile = alpha_smoothing.goodput.$nodes rm -f $latfile touch $latfile rm -f $gfile touch $gfile set alpha = 70 while ( $alpha <= $max_alpha ) set simulations = 1 rm -f "latfile_many" touch "latfile_many" rm -f "gfile_many" touch "gfile_many" while ( $simulations <= $max_simulations ) echo "simulations $simulations" rm -f "mean.dat" touch "mean.dat" ns main.tcl test_three.tcl $nodes 5000 $alpha 1 set goodput = `wlan-goodput-normal test_three.tcl 0.5` echo "$goodput " >> gfile_many set lat_flow = 0 set flow = 0 while ( $flow < $nodes ) set lat_flow = `wlan-lat-mean test_three.tcl $flow AGT ` echo "$lat_flow" >> mean.dat @ flow = $flow + 1 end set meandelay = `compute-mean mean.dat $nodes ` echo "$meandelay" >> latfile_many @ simulations = $simulations + 1 end set meangood = `compute-mean gfile_many 20` set meanlat = `compute-mean latfile_many 20` echo "$alpha $meanlat " >> $latfile echo "$alpha $meangood" >> $gfile @ alpha = $alpha + $increment1 end @ nodes = $nodes + $incrementend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -