class TLinearMinimizer: public ROOT::Math::Minimizer


  TLinearMinimizer, simple class implementing the ROOT::Math::Minimizer interface using
  TLinearFitter.
  This class uses TLinearFitter to find directly (by solving a system of linear equations)
  the minimum of a
  least-square function which has a linear dependence in the fit parameters.
  This class is not used directly, but via the ROOT::Fitter class, when calling the
  LinearFit method. It is instantiates using the plug-in manager (plug-in name is "Linear")


Function Members (Methods)

public:
TLinearMinimizer(int type = 0)
virtual~TLinearMinimizer()
static TClass*Class()
virtual voidROOT::Math::Minimizer::Clear()
virtual doubleROOT::Math::Minimizer::Correlation(unsigned int i, unsigned int j) const
virtual doubleCovMatrix(unsigned int i, unsigned int j) const
virtual doubleEdm() const
virtual const double*Errors() const
doubleROOT::Math::Minimizer::ErrorUp() const
virtual boolROOT::Math::Minimizer::GetMinosError(unsigned int, double& errLow, double& errUp)
virtual TClass*IsA() const
boolROOT::Math::Minimizer::IsValidError() const
unsigned intROOT::Math::Minimizer::MaxFunctionCalls()
unsigned intROOT::Math::Minimizer::MaxIterations()
virtual const double*MinGradient() const
virtual boolMinimize()
virtual doubleMinValue() const
virtual unsigned intNCalls() const
virtual unsigned intNDim() const
virtual unsigned intNFree() const
intROOT::Math::Minimizer::PrintLevel() const
virtual boolProvidesError() const
voidROOT::Math::Minimizer::SetErrorUp(double up)
virtual boolSetFixedVariable(unsigned int, const string&, double)
virtual voidSetFunction(const ROOT::Math::IMultiGenFunction& func)
virtual voidSetFunction(const ROOT::Math::IMultiGradFunction& func)
virtual boolROOT::Math::Minimizer::SetLimitedVariable(unsigned int ivar, const string& name, double val, double step, double, double)
virtual boolROOT::Math::Minimizer::SetLowerLimitedVariable(unsigned int ivar, const string& name, double val, double step, double lower)
voidROOT::Math::Minimizer::SetMaxFunctionCalls(unsigned int maxfcn)
voidROOT::Math::Minimizer::SetMaxIterations(unsigned int maxiter)
voidROOT::Math::Minimizer::SetPrintLevel(int level)
voidROOT::Math::Minimizer::SetStrategy(int strategyLevel)
voidROOT::Math::Minimizer::SetTolerance(double tol)
virtual boolROOT::Math::Minimizer::SetUpperLimitedVariable(unsigned int ivar, const string& name, double val, double step, double upper)
voidROOT::Math::Minimizer::SetValidError(bool on)
virtual boolSetVariable(unsigned int, const string&, double, double)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
intROOT::Math::Minimizer::Strategy() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
doubleROOT::Math::Minimizer::Tolerance() const
virtual const double*X() const
private:
TLinearMinimizer(const TLinearMinimizer&)
TLinearMinimizer&operator=(const TLinearMinimizer& rhs)

Data Members

protected:
intROOT::Math::Minimizer::fDebugprint level
unsigned intROOT::Math::Minimizer::fMaxCallsmax number of funciton calls
unsigned intROOT::Math::Minimizer::fMaxItermax number or iterations used to find the minimum
intROOT::Math::Minimizer::fStrategyminimizer strategy
doubleROOT::Math::Minimizer::fToltolerance (absolute)
doubleROOT::Math::Minimizer::fUperror scale
boolROOT::Math::Minimizer::fValidErrorflag to control if errors have been validated (Hesse has been run in case of Minuit)
private:
vector<double>fCovar
unsigned intfDim
vector<double>fErrors
TLinearFitter*fFitter
doublefMinVal
unsigned intfNFree
const ROOT::Math::IGradientFunctionMultiDim*fObjFunc
vector<double>fParams

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TLinearMinimizer(int )
 Default constructor implementation.
 type is not used - needed for consistency with other minimizer plug-ins
~TLinearMinimizer()
 Destructor implementation.
TLinearMinimizer(const TLinearMinimizer &)
 Implementation of copy constructor.
void SetFunction(const ROOT::Math::IMultiGenFunction & )
 Set function to be minimized. Flag an error since only support Gradient objective functions
void SetFunction(const ROOT::Math::IMultiGradFunction & objfunc)
 Set the function to be minimized. The function must be a Chi2 gradient function
 When performing a linear fit we need the basis functions, which are the partial derivatives with respect to the parameters of the model function.
bool SetFixedVariable(unsigned int , const string& , double )
 set a fixed variable.
bool Minimize()
 find directly the minimum of the chi2 function
 solving the linear equation. Use  TVirtualFitter::Eval.
bool SetVariable(unsigned int , const string& , double , double )
 set free variable (dummy impl. )
{ return false; }
double MinValue()
 return minimum function value
{ return fMinVal; }
double Edm()
 return expected distance reached from the minimum
{ return 0; }
const double * X()
 return  pointer to X values at the minimum
{ return &fParams.front(); }
const double * MinGradient()
 return pointer to gradient values at the minimum
{ return 0; }
unsigned int NCalls()
 number of function calls to reach the minimum
{ return 0; }
unsigned int NDim()
 this is <= Function().NDim() which is the total
 number of variables (free+ constrained ones)
{ return fDim; }
unsigned int NFree()
 number of free variables (real dimension of the problem)
 this is <= Function().NDim() which is the total
{ return fNFree; }
bool ProvidesError()
 minimizer provides error and error matrix
{ return true; }
const double * Errors()
 return errors at the minimum
{ return &fErrors.front(); }
double CovMatrix(unsigned int i, unsigned int j) const
 return covariance matrices elements
       if the variable is fixed the matrix is zero
       The ordering of the variables is the same as in errors


Author: L. Moneta Wed Oct 25 16:28:55 2006
Last change: root/minuit:$Id: TLinearMinimizer.h 23623 2008-04-30 16:13:06Z moneta $
Last generated: 2008-06-25 08:47
Copyright (c) 2006 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.