ROOT 6.08/07 Reference Guide |
FitMethodFunction class Interface for objective functions (like chi2 and likelihood used in the fit) In addition to normal function interface provide interface for calculating each data contrinution to the function which is required by some algorithm (like Fumili)
Public Types | |
typedef FunctionType::BaseFunc | BaseFunction |
enum | Type_t { kUndefined, kLeastSquare, kLogLikelihood } |
enumeration specyfing the possible fit method types More... | |
Public Member Functions | |
BasicFitMethodFunction (int dim, int npoint) | |
virtual | ~BasicFitMethodFunction () |
Virtual Destructor (no operations) More... | |
virtual double | DataElement (const double *x, unsigned int i, double *g=0) const =0 |
method returning the data i-th contribution to the fit objective function For example the residual for the least square functions or the pdf element for the likelihood functions. More... | |
virtual unsigned int | NCalls () const |
return the total number of function calls (overrided if needed) More... | |
virtual unsigned int | NDim () const |
Number of dimension (parameters) . More... | |
virtual unsigned int | NPoints () const |
return the number of data points used in evaluating the function More... | |
virtual void | ResetNCalls () |
reset number of function calls More... | |
virtual Type_t | Type () const |
return the type of method, override if needed More... | |
virtual void | UpdateNCalls () const |
update number of calls More... | |
Private Attributes | |
unsigned int | fNCalls |
unsigned int | fNDim |
unsigned int | fNPoints |
#include <Fit/Fitter.h>
typedef FunctionType::BaseFunc ROOT::Math::BasicFitMethodFunction< FunctionType >::BaseFunction |
Definition at line 43 of file FitMethodFunction.h.
enum ROOT::Math::BasicFitMethodFunction::Type_t |
enumeration specyfing the possible fit method types
Enumerator | |
---|---|
kUndefined | |
kLeastSquare | |
kLogLikelihood |
Definition at line 46 of file FitMethodFunction.h.
|
inline |
Definition at line 49 of file FitMethodFunction.h.
|
inlinevirtual |
Virtual Destructor (no operations)
Definition at line 58 of file FitMethodFunction.h.
|
pure virtual |
method returning the data i-th contribution to the fit objective function For example the residual for the least square functions or the pdf element for the likelihood functions.
Estimating eventually also the gradient of the data element if the passed pointer is not null
Implemented in ROOT::Fit::Chi2FCN< FunType >, ROOT::Fit::LogLikelihoodFCN< FunType >, and ROOT::Fit::PoissonLikelihoodFCN< FunType >.
|
inlinevirtual |
return the total number of function calls (overrided if needed)
Definition at line 87 of file FitMethodFunction.h.
|
inlinevirtual |
Number of dimension (parameters) .
From IGenMultiFunction interface
Definition at line 63 of file FitMethodFunction.h.
|
inlinevirtual |
return the number of data points used in evaluating the function
Definition at line 77 of file FitMethodFunction.h.
|
inlinevirtual |
reset number of function calls
Definition at line 97 of file FitMethodFunction.h.
|
inlinevirtual |
return the type of method, override if needed
Reimplemented in ROOT::Fit::Chi2FCN< FunType >, ROOT::Fit::LogLikelihoodFCN< FunType >, and ROOT::Fit::PoissonLikelihoodFCN< FunType >.
Definition at line 82 of file FitMethodFunction.h.
|
inlinevirtual |
update number of calls
Definition at line 92 of file FitMethodFunction.h.
|
mutableprivate |
Definition at line 111 of file FitMethodFunction.h.
|
private |
Definition at line 109 of file FitMethodFunction.h.
|
private |
Definition at line 110 of file FitMethodFunction.h.