0

我尝试用指数回归绘制数据:

set terminal postscript enhanced color
set output 'fichier.ps'
set logscale y
set logscale x
set format y "10^{%L}" 
set format x "10^{%L}" 
set key inside right top
set xlabel " lines "
set ylabel " Time(nanoseconds)"

f(x) = a + b*exp (x)
fit f(x) 'fichier.csv' using 16:17 via a, b

plot 'fichier.csv' using 16:17 with points title "title" lw 3 pt 4 linecolor rgb "#FF0000",  f(x) with lines title "regtitle" linecolor rgb "#000000" lw 3

我有这个错误:

Max. number of data points scaled up to: 3072
         Undefined value during function evaluation

我继续跑gnuplot 4.4

如何解决问题?

4

1 回答 1

1

该消息Max. number of data points scaled up to: 3072与拟合错误无关,另请参见Gnuplot:如何设置拟合的最大数据点数

您的拟合错误可能是由于数据错误或参数初始值设置不当造成的。如果您在拟合之前根本没有设置变量,gnuplot 会使用 1.0 初始化它们,这可能完全关闭。众所周知,指数拟合不稳定,起始值不好。在拟合之前,您可以使用 gnuplotsstats命令进一步了解您的数据。

于 2016-05-10T15:10:41.673 回答