class ROOT::Math::BasicFitMethodFunction<ROOT::Math::IGradientFunctionMultiDim>: public ROOT::Math::IGradientFunctionMultiDim


   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)

   @ingroup  FitMethodFunc

This class is also known as (typedefs to this class)

ROOT::Math::BasicFitMethodFunction<ROOT::Math::IMultiGradFunction>, ROOT::Math::FitMethodGradFunction

Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~BasicFitMethodFunction<ROOT::Math::IGradientFunctionMultiDim>()
virtual ROOT::Math::IBaseFunctionMultiDim*ROOT::Math::IBaseFunctionMultiDim::Clone() const
virtual doubleDataElement(const double* x, unsigned int i, double* g = 0) const
doubleROOT::Math::IGradientMultiDim::Derivative(const double* x, unsigned int icoord = 0) const
virtual voidROOT::Math::IGradientFunctionMultiDim::FdF(const double* x, double& f, double* df) const
virtual voidROOT::Math::IGradientFunctionMultiDim::Gradient(const double* x, double* grad) const
virtual unsigned intNCalls() const
virtual unsigned intNDim() const
virtual unsigned intNPoints() const
doubleROOT::Math::IBaseFunctionMultiDim::operator()(const double* x) const
ROOT::Math::BasicFitMethodFunction<ROOT::Math::IGradientFunctionMultiDim>&operator=(const ROOT::Math::BasicFitMethodFunction<ROOT::Math::IGradientFunctionMultiDim>&)
virtual voidResetNCalls()
virtual ROOT::Math::BasicFitMethodFunction<ROOT::Math::IGradientFunctionMultiDim>::Type_tType() const
virtual voidUpdateNCalls() const

Data Members

public:
enum Type_t { kUndefined
kLeastSquare
kLogLikelihood
};
private:
unsigned intfNCalls
unsigned intfNDim
unsigned intfNPointssize of the data

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

unsigned int NDim()
      Number of dimension (parameters) . From IGenMultiFunction interface

{ return fNDim; }
double DataElement(const double* x, unsigned int i, double* g = 0) const
      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

unsigned int NPoints()
      return the number of data points used in evaluating the function

{ return fNPoints; }
unsigned int NCalls()
      return the total number of function calls (overrided if needed)

{ return fNCalls; }
void UpdateNCalls()
      update number of calls

{ fNCalls++; }
void ResetNCalls()
      reset number of function calls

{ fNCalls = 0; }

Author: L. Moneta Thu Aug 16 15:40:28 2007
Last change: root/mathcore:$Id: FitMethodFunction.h 26014 2008-10-29 16:37:28Z moneta $
Last generated: 2008-12-01 17:06
Copyright (c) 2007 LCG ROOT Math Team, CERN/PH-SFT *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.