⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 std_ave.awk

📁 This is a simulator written in Tcl to simulate a network node carrying GSM and GPRS traffics with Qo
💻 AWK
字号:
# usage: get link average and standard deviation from every connection's average # awk -f std_ave.awk *.tr BEGIN {	total=0.0	flowNum=0.0 }   val[flowNum]=$2   flowNum++   total=total+$2 END {	av=total/flowNum	for (i in val) {	   d=val[i]-av	   s2=s2+d*d    	}	print "total session number: " flowNum 	print "average delay: " av "sec"        print "standard deviation: " sqrt(s2/nl) "sec"	     }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -