Bru*_*ior 5 gnuplot standard-deviation
您好我想知道如何使用gnuplot计算数据文件列的标准偏差.我知道gnuplot使用n $ n引用一个列,但我如何(可以提供函数)添加$ n的所有值.这就是我在gnuplot中无法做到的,他们不想使用一些外部程序.由于gnuplot使用符号$ n,我猜这是可能的,但不是如此.有什么建议?
小智 6
有一个命令:stats
使用整个第二列的示例:
stats "filename" using 2 name "A"
Run Code Online (Sandbox Code Playgroud)
这将为您提供终端中的详细信息,您可以使用带后缀的数据(此处为"A"),如:
plot "filename" t "data", A_mean t "mean value"
Run Code Online (Sandbox Code Playgroud)
另请参阅help stats有关该命令的更多信息
小智 5
玩一些技巧,gnuplot可以做这种工作.我在两篇博客文章中谈到了"使用gnuplot进行统计分析".全部涵盖平均值,最大值,最小值,标准偏差.这是网址:
http://gnuplot-surprising.blogspot.com/2011/09/statistic-analysis-using-gnuplot-0.html
http://gnuplot-surprising.blogspot.com/2011/09/statistic-analysis-using-gnuplot-1.html
也许你可以从这两篇文章中找到你想要的东西!
