【发布时间】:2019-05-06 10:54:06
【问题描述】:
我想对运行在 600 个节点上的基准测试中的输出文件进行统计分析。特别是,我需要最小值、上四分位数、中位数、下四分位数、最小值和平均值。我的输出是文件testrun16-[1-600]
附上代码:
ListofFiles = system('dir testrun16-*')
set print 'MaxValues.dat'
do for [file in ListofFiles]{
stats file using 1 nooutput
print STATS_max
}
set print 'upquValues.dat'
do for [file in ListofFiles]{
stats file using 1 nooutput
print STATS_up_quartile
}
set print 'MedianValues.dat'
do for [file in ListofFiles]{
stats file using 1 nooutput
print STATS_median
}
set print 'loquValues.dat'
do for [file in ListofFiles]{
stats file using 1 nooutput
print STATS_lo_quartile
}
set print 'MinValues.dat'
do for [file in ListofFiles]{
stats file using 1 nooutput
print STATS_min
}
set print 'MeanValues.dat'
do for [file in ListofFiles]{
stats file using 1 nooutput
print STATS_mean
}
unset print
set term x11
set title 'CLAIX2016 distribution of OSnoise using FWQ'
set xlabel "Number of Nodes"
set ylabel "Runtime [ns]"
plot 'MaxValues.dat' using 1 title 'maximum value', 'upquValues.dat' title 'upper quartile', 'MedianValues.dat' using 1 title 'median value', 'loquValues.dat' title 'lower quartile', 'MinValues.dat' title 'minimum value', 'MeanValues.dat' using 1 title 'mean value';
set term png
set output 'noises.png'
replot
我获得这些值并可以绘制它们。但是,每次运行的元组都会混淆。 testrun16-17.dat 的平均值绘制在x=317 上,它的最小值也在另一个地方。
如何保存输出但将元组保持在一起并将每个节点绘制在它的实际位置上?
【问题讨论】:
-
dir testrun16-*是否按照您想要的顺序提供文件名?即,testrun16-17.dat是该命令的第 17 个输出吗? -
我刚刚通过添加另一个排序选项
dir testrun16-* -v对其进行了测试,至少在控制台输出中对它们进行排序。然而 gunplot 不断将 17th 文件放在 317 位置 -
显然我不能编辑 cmets?无论如何。我还将数字小于 10 的文件重命名为
testrun16-001.dat等格式。这现在将第 17 个条目推到第 65 位。
标签: linux statistics gnuplot