13 #ifndef ROOT_Math_FitMethodFunction 14 #define ROOT_Math_FitMethodFunction 35 template<
class FunctionType>
36 class BasicFitMethodFunction :
public FunctionType {
69 virtual double DataElement(
const double *
x,
unsigned int i,
double *g = 0)
const = 0;
virtual void UpdateNCalls() const
update number of calls
Type_t
enumeration specyfing the possible fit method types
Namespace for new ROOT classes and functions.
virtual ~BasicFitMethodFunction()
Virtual Destructor (no operations)
virtual unsigned int NPoints() const
return the number of data points used in evaluating the function
virtual Type_t Type() const
return the type of method, override if needed
virtual void ResetNCalls()
reset number of function calls
FunctionType::BaseFunc BaseFunction
virtual unsigned int NDim() const
Number of dimension (parameters) .
* x
Deprecated and error prone model selection interface.
FitMethodFunction class Interface for objective functions (like chi2 and likelihood used in the fit) ...
Namespace for new Math classes and functions.
virtual unsigned int NCalls() const
return the total number of function calls (overrided if needed)
BasicFitMethodFunction< ROOT::Math::IMultiGradFunction > FitMethodGradFunction
BasicFitMethodFunction(int dim, int npoint)
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 fo...
BasicFitMethodFunction< ROOT::Math::IMultiGenFunction > FitMethodFunction