=================================================================== RCS file: /home/cvs/OpenXM_contrib/gnuplot/demo/Attic/fit.dem,v retrieving revision 1.1.1.2 retrieving revision 1.1.1.3 diff -u -p -r1.1.1.2 -r1.1.1.3 --- OpenXM_contrib/gnuplot/demo/Attic/fit.dem 2000/01/22 14:16:06 1.1.1.2 +++ OpenXM_contrib/gnuplot/demo/Attic/fit.dem 2003/09/15 07:09:29 1.1.1.3 @@ -1,5 +1,5 @@ # -# $Id: fit.dem,v 1.1.1.2 2000/01/22 14:16:06 maekawa Exp $ +# $Id: fit.dem,v 1.1.1.3 2003/09/15 07:09:29 ohara Exp $ # print "Some examples how data fitting using nonlinear least squares fit" @@ -54,7 +54,7 @@ print "It's time now to try a more realistic model fun load 'density.fnc' show functions print "density(x) is a function which shall fit the whole temperature" -print "range using a ?: expression. It contains 6 model parameters which +print "range using a ?: expression. It contains 6 model parameters which" print "will all be varied. Now take the start parameters out of the" pause -1 "file 'start.par' and plot the function (-> return)" load 'start.par' @@ -107,7 +107,7 @@ print "\n\nNotice, however, that this would converge m print "fitted in a more appropriate co-ordinate system:" print "fit r 'hemisphr.dat' using 0:($1*$1+$2*$2+$3*$3) via r" print "where we are fitting f(x)=r to the radii calculated as the data" -print "is read from the file. No x value is required in this case. +print "is read from the file. No x value is required in this case." pause -1 "(This is left as an excercise for the user). (-> return)" FIT_MAXITER=0 # no limit : we cannot delete the variable once set @@ -196,7 +196,7 @@ set title 'initial parameters' plot 'moli3.dat' w e, R(x) pause -1 "now start fitting... (-> return)" fit R(x) 'moli3.dat' u 1:2:3 via eta, tc -pause -1 "now look at the result (-> return)" +pause -1 "Hit return to continue" set title 'fitted parameters' replot