📄 period_simulation.sh
字号:
#!/bin/csh -fset max_adapt = 10000set max_simulations = 3set increment1 = 100set max_nodes = 25set increment = 10set nodes = 25while ( $nodes <= $max_nodes ) set gfile = control_period.goodput.$nodes rm -f $gfile touch $gfile set ctr_period = 200 while ( $ctr_period <= $max_adapt ) set simulations = 1 rm -f "gfile_many" touch "gfile_many" while ( $simulations <= $max_simulations ) echo "simulations $simulations" ns ni_test1.tcl test_three.tcl $nodes $ctr_period 80 set goodput = `wlan-goodput-normal test_three.tcl 0.5` echo "$goodput " >> gfile_many @ simulations = $simulations + 1 end set meangood = `compute-mean gfile_many 3` echo "$ctr_period $meangood" >> $gfile @ ctr_period = $ctr_period + $increment1 end @ nodes = $nodes + $incrementend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -