Re: [ROOT] fitting Data without the need to write them into a histogram

From: Eddy Offermann (eddy@rentec.com)
Date: Tue Jul 29 2003 - 22:04:44 MEST


Hi Ralph,

Have a look at Ifit.C in the tutorial directory.
func is the function yoy are fitting and fcn
is defining your objective function.

You could use TMinuit::GetObjectFit() and SetObjectFit
to bring in your data through an object that inherits
from TObject.

Eddy

> 
> Hello!
> 
> I have a set of arrays with data which needed to be fitted to a user defined 
> function. 
> Up to now the prototype writes them into a TGraphErrors object and using the 
> TGraphErrors::Fit() function the desired function is evaluated.
> 
> Is there a possibility to fit (TMatrixD, TArray..etc.) data without the need 
> of defining a histogram, canvas or anything else which tend to make graphical 
> output?
> Thanks in advance.
> 
> 
> Cheers,
> 
> Ralph



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET