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 ?
regards,
soeren
|-----------------------------------------------------------------------------|
| dr. jens soeren lange |
| Technical University, Inst. f. Kern- und Teilchenphysik, D-01062 Dresden |
| soeren.lange@physik.tu-dresden.de Phone +49-351-463-3161 |
| http://pktw09.phy.tu-dresden.de/~soeren Fax +49-351-463-7292 |
|-----------------------------------------------------------------------------|