【问题标题】:GNUplot fit with only x-errors in version 5?GNUplot 仅适用于版本 5 中的 x 错误?
【发布时间】:2017-03-12 07:12:32
【问题描述】:

我正在尝试使用 GNUplot 拟合我的数据。碰巧我的数据只有 x 误差线。我听说版本 5 应该只允许使用 x 错误进行拟合。怎么能做到这一点?我尝试了以下方法,但如您所见,我遇到了我无法弄清楚的错误:

gnuplot> fit f(x) "data1m" using 2:3:4 with xerrorbars via b,u,n
     warning: 
> Implied independent variable y not found in fit function.
> Assuming version 4 syntax with zerror in column 3 but no zerror keyword.

                                        ^
     Need via and either parameter list or file

我该如何解决这个问题?

【问题讨论】:

    标签: gnuplot curve-fitting least-squares chi-squared


    【解决方案1】:

    它似乎不仅仅适用于 x 错误,但您可以使用非常小的常量 y 错误。 试试fit f(x) "data1m" using 2:3:4:(1E-38) xyerrors via b,u,n

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多