Hi Maria,
Just put your points in a TGraphErrors and plot it.
You can then right-click at one of the points and select "Fitpanel".
Here you can activate all sorts of polynomials, Gauss etc... fits.
Cheers,
Nick.
Maria Castro wrote:
>
> Hi,
> Does anyone know how to use the LeastSquareLinearFit(n, a[0], a[1],
> ifail) function?
> I have a graph of several points that I want to fit with a straight line
> using the least square method.
> thanks,
> Maria
--
Dr. Nick van Eijndhoven
Organisation: Utrecht University/Nikhef, Department of Subatomic Physics
Address: P.O. Box 80.000, NL-3508 TA Utrecht, The Netherlands
Phone: +31-30-2532331 (direct) +31-30-2531492 (secr.) Fax: +31-30-2518689
Electronic: nick@phys.uu.nl http://www.phys.uu.nl/~nick Office: Ornstein lab. 172
At NIKHEF: H350 Tel: +31-20-5922028 (direct) +31-20-5922000 (secr.) Fax: +31-20-5925155
At CERN: B160 1-012 Tel: +41-22-7679751 (direct) +41-22-7675857 (secr.) Fax: +41-22-7679480
-------------------------------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET