Fit x,y

Voropaev S.G. (voropaev@inp.nsk.su)
Sat, 9 Aug 1997 14:57:53 +0700


Hi.

I want fit to line my data. I create 2 float array x[] and y[] and TGraph
object:
TGraph *tg = new TGraph(N, x,y)
tg->Draw("AP")
tg->Fit("pol1","","AP")

and I see on window my data point and fitting line.

Trouble:

1. I see very short line. For example, data X range is 0.4-0.7, but line X
range is about 0.54-0.56.
2. When I work with big N (~50000), parameters of fitting line is not valid.

What is wrong?

Voropaev S.G.