(no subject)

Rene Brun (Rene.Brun@cern.ch)
Fri, 07 Mar 1997 16:09:37 +0100


Soeren Lange wrote:
>
> Hi,
>
> how is it possible to fit with a user defined function?
>
> (...graph existing...)
>
> root [20] TF1 *f1 = new TF1("f1", "sin(x)", 0., 3.14);
> root [21] graph->Fit("f1");
> Illegal number of parameters = 0
>
> With graph->Fit("pol5") everything is fine.
>
> Is there any predefined fitting function else
> than gaus, poln, expo ?

Look at the example:
http://root.cern.ch/root/html/examples/multifit.C.html

Rene Brun