Gnuplot-fitting

Gnuplot-fitting,gnuplot,curve-fitting,Gnuplot,Curve Fitting,请问,安装有什么问题 A = -100 C = -0.3 D = 22 f(x) = A*sin(2*pi*x+C)+D fit f(x) 'RV_phase' via A,C,D g(x) = -100*sin(2*pi*x-0.3)+22 plot 'RV_phase' u 3:2 with points pt 7 ps 1 notitle, f(x) lc rgb "black" title "Fitted", g(x) lc rgb "red" title "Manual settin

请问,安装有什么问题

A = -100
C = -0.3
D = 22
f(x) = A*sin(2*pi*x+C)+D
fit f(x) 'RV_phase' via A,C,D
g(x) = -100*sin(2*pi*x-0.3)+22

plot 'RV_phase' u 3:2 with points pt 7 ps 1 notitle, f(x) lc rgb "black" title "Fitted", g(x) lc rgb "red" title "Manual setting"
手动设定曲线是否足够?

对于管件,必须使用与打印时相同的
指定相同的数据列:

fit f(x) 'RV_phase' using 3:2 via A,C,D 
plot 'RV_phase' using 3:2 with points, f(x) with lines

拟合时还必须指定数据列:
fit f(x)'RV_phase',使用3:2通过A、C、D进行拟合。
@Alex:我的印象是,您正在拟合径向速度曲线。请查看GLS周期图的详细信息。它包含一个gnuplot脚本,用于拟合圆形和开普勒轨道。