Fitter class, entry point for performing all type of fits. Fits are performed using the generic ROOT::Fit::Fitter::Fit method. The inputs are the data points and a model function (using a ROOT::Math::IParamFunction) The result of the fit is returned and kept internally in the ROOT::Fit::FitResult class. The configuration of the fit (parameters, options, etc...) are specified in the ROOT::Math::FitConfig class. @ingroup FitMain
~Fitter() | |
const ROOT::Fit::FitConfig& | Config() const |
ROOT::Fit::FitConfig& | Config() |
bool | Fit(const ROOT::Fit::BinData& data) |
bool | Fit(const ROOT::Fit::UnBinData& data) |
bool | Fit(const ROOT::Fit::BinData& data, const ROOT::Math::IParametricFunctionMultiDim& func) |
bool | Fit(const ROOT::Fit::UnBinData& data, const ROOT::Math::IParametricFunctionMultiDim& func) |
bool | FitFCN(ROOT::Fit::Fitter::MinuitFCN_t fcn) |
bool | FitFCN(const ROOT::Math::IMultiGenFunction& fcn, const double* params = 0, unsigned int dataSize = 0) |
bool | FitFCN(const ROOT::Math::IMultiGradFunction& fcn, const double* params = 0, unsigned int dataSize = 0) |
ROOT::Fit::Fitter | Fitter() |
ROOT::Math::IMultiGenFunction* | GetFCN() |
ROOT::Math::Minimizer* | GetMinimizer() |
bool | IsBinFit() const |
bool | LikelihoodFit(const ROOT::Fit::BinData& data) |
bool | LikelihoodFit(const ROOT::Fit::UnBinData& data) |
bool | LikelihoodFit(const ROOT::Fit::BinData& data, const ROOT::Math::IParametricFunctionMultiDim& func) |
bool | LikelihoodFit(const ROOT::Fit::UnBinData& data, const ROOT::Math::IParametricFunctionMultiDim& func) |
bool | LinearFit(const ROOT::Fit::BinData& data) |
const ROOT::Fit::FitResult& | Result() const |
void | SetFunction(const ROOT::Fit::Fitter::IModelFunction& func) |
void | SetFunction(const ROOT::Fit::Fitter::IModel1DFunction& func) |
void | SetFunction(const ROOT::Fit::Fitter::IGradModelFunction& func) |
void | SetFunction(const ROOT::Fit::Fitter::IGradModel1DFunction& func) |
bool | DoLeastSquareFit(const ROOT::Fit::BinData& data) |
bool | DoLikelihoodFit(const ROOT::Fit::BinData& data) |
bool | DoLikelihoodFit(const ROOT::Fit::UnBinData& data) |
bool | DoLinearFit(const ROOT::Fit::BinData& data) |
bool | fBinFit | flag to indicate if fit is binned (in case of false the fit is unbinned or undefined) |
ROOT::Fit::FitConfig | fConfig | fitter configuration (options and parameter settings) |
ROOT::Fit::Fitter::IModelFunction* | fFunc | copy of the fitted function containing on output the fit result (managed by FitResult) |
auto_ptr<ROOT::Math::Minimizer> | fMinimizer | ! pointer to used minimizer |
auto_ptr<ROOT::Math::IMultiGenFunction> | fObjFunction | ! pointer to used objective function |
auto_ptr<ROOT::Fit::FitResult> | fResult | ! pointer to the object containing the result of the fit |
bool | fUseGradient | flag to indicate if using gradient or not |
fit a data set using any generic model function Pre-requisite on the function:
fit a binned data set (default method: use chi2) To be implemented option to do likelihood bin fit
fit a data set using any generic model function Pre-requisite on the function:
fit using the given FCN function represented by a multi-dimensional function interface (ROOT::Math::IMultiGenFunction). Give optionally initial the parameter values and data size to have the fit Ndf correctly set in the FitResult. If the parameters values are not given (parameter pointers=0) the current parameter settings are used. The parameter settings can be created before by using the FitConfig::SetParamsSetting. If they have not been created they are created automatically when the params pointer is not zero
Fit using the given FCN function representing a multi-dimensional gradient function interface (ROOT::Math::IMultiGradFunction). In this case the minimizer will use the gradient information provided by the function. For the other arguments same consideration as in the previous method
do a linear fit on a set of bin-data
{ return DoLinearFit(data); }
Set the fitted function (model function) from a parametric function interface
query if fit is binned. In cse of false teh fit can be unbinned or is not defined (like in case of fitting through a ::FitFCN)
{ return fBinFit; }
return pointer to last used minimizer (is NULL in case fit is not yet done) This pointer will be valid as far as the data, the objective function and the fitter class have not been deleted. To be used only after fitting.
{ return fMinimizer.get(); }
return pointer to last used objective function (is NULL in case fit is not yet done) This pointer will be valid as far as the data and the fitter class have not been deleted. To be used after the fitting
{ return fObjFunction.get(); }