13 #ifndef ROOT_Math_FitMethodFunction 14 #define ROOT_Math_FitMethodFunction 16 #ifndef ROOT_Math_IFunction 37 template<
class FunctionType>
38 class BasicFitMethodFunction :
public FunctionType {
71 virtual double DataElement(
const double *
x,
unsigned int i,
double *g = 0)
const = 0;
Type_t
enumeration specyfing the possible fit method types
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
virtual Type_t Type() const
return the type of method, override if needed
virtual ~BasicFitMethodFunction()
Virtual Destructor (no operations)
virtual unsigned int NPoints() const
return the number of data points used in evaluating the function
virtual void ResetNCalls()
reset number of function calls
virtual unsigned int NDim() const
Number of dimension (parameters) .
FunctionType::BaseFunc BaseFunction
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...
FitMethodFunction class Interface for objective functions (like chi2 and likelihood used in the fit) ...
Namespace for new Math classes and functions.
BasicFitMethodFunction< ROOT::Math::IMultiGradFunction > FitMethodGradFunction
virtual void UpdateNCalls() const
update number of calls
BasicFitMethodFunction(int dim, int npoint)
virtual unsigned int NCalls() const
return the total number of function calls (overrided if needed)
BasicFitMethodFunction< ROOT::Math::IMultiGenFunction > FitMethodFunction