【问题标题】:gnuplot - error bars and fitting for calculations from raw datagnuplot - 误差线和拟合原始数据的计算
【发布时间】:2012-07-21 20:27:56
【问题描述】:

如果我有这样的 data.txt 文件,gnuplot 会做什么:

#x  y  dx  dy
 1  2  0.2 0.1 
 3  5  0.1 0.3

其中 dx 和 dy 是与 x 和 y (x +- dx, y +- dy) 直接相关的误差。我这样做:

plot data.txt using (1/$1):($2*5):3:4 with xyerrorbars

gnuplot 会为 x 和 y 做这个

(1/x) +- dx
5y +- dy

或者那个

1/(x +- dx)
5(y +- dy)

或者那个

1/x +- 1/dx

或者说,从 sqrt(sum(derivative times the error)^2) 得到的正确的高斯误差传播

1/x -+ dx/x^2

以及如何适应这种情况?

【问题讨论】:

    标签: gnuplot gaussian propagation


    【解决方案1】:

    Gnuplot 肯定会做第一个选项(1/x) +- dx。至于配件,你必须更具体一点......

    【讨论】:

    • 谢谢。无论如何,合适的问题已经过时了。因为 gnuplot 可以进行加权最小二乘拟合,所以我想知道在 plot/fit 命令中使用计算时如何处理错误。但如果它在绘图中什么都不做,那么它肯定不会适合任何事情。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-17
    • 2021-07-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多