Re: fit by varying the data

Hans-Bernhard Bröker <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
Am 18.06.2019 um 18:53 schrieb Patrick Dupre:
> Hello,
> 
> Can I do this:
> fit a*(x-x0) $DATA u (x=$1):($2*sin(theta)+$3*cos(theta)) via x0,a,theta
                        ^^^^

That assignment operation makes no sense at all.

And no, you can't do that.  The parameters have to influence the
_function_, not the data.  You really wouldn't want to re-read the
entire dataset on every iteration of 'fit', just to update the effect of
parameters on the data.



_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.