for fitting a two-dimensional function you need 4 data columns
"x:y:z:weight", see:
http://www.gnuplot.info/docs/node82.html
and if your data columns are - as an example - arranged like this:
#line_number weight x y z
1 0.5 7. 6. 8.
then the fit command would be:
fit ... using 3:4:5:2 ...
Me4gnu wrote:
>
>
> Hey,
>
> I want to do a fit where that am using two input from my data file and one
> parameter, but I cannot really figure out how to do that (or if its even
> possible :-)).
>
> I was thinking of (for instance) :
>
> d(x,y)= a*(x-y)
>
> fit d(x,y) "data.dat" u 1:2:3 via a
>
> But now it is not really clear for me .... how I can specify in the above
> line that is has to take x from column 2 and y from column 3 (for
> instance).
> Because in the above 1:2:3 is saying horizontal, vertical and error.
>
> Anybody an idea?
>
> Thanks!
>
--
View this message in context: http://www.nabble.com/fit-with-two-inputs-from-file-tp25530618p25530637.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|