ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROOT::Math::GSLMultiFit Class Reference

GSLMultiFit, internal class for implementing GSL non linear least square GSL fitting.

Definition at line 51 of file GSLMultiFit.h.

Public Member Functions

 GSLMultiFit (const gsl_multifit_fdfsolver_type *type=0)
 Default constructor No need to specify the type so far since only one solver exists so far. More...
 
 ~GSLMultiFit ()
 Destructor (no operations) More...
 
void CreateSolver (unsigned int npoints, unsigned int npar)
 create the minimizer from the type and size of number of fitting points and number of parameters More...
 
template<class Func >
int Set (const std::vector< Func > &funcVec, const double *x)
 set the solver parameters More...
 
std::string Name () const
 
int Iterate ()
 
const doubleX () const
 parameter values at the minimum More...
 
const doubleGradient () const
 gradient value at the minimum More...
 
const doubleCovarMatrix () const
 return covariance matrix of the parameters More...
 
int TestGradient (double absTol) const
 test gradient (ask from solver gradient vector) More...
 
int TestDelta (double absTol, double relTol) const
 test using abs and relative tolerance |dx| < absTol + relTol*|x| for every component More...
 
double Edm () const
 

Private Member Functions

 GSLMultiFit (const GSLMultiFit &)
 Copy constructor. More...
 
GSLMultiFitoperator= (const GSLMultiFit &rhs)
 Assignment operator. More...
 

Private Attributes

GSLMultiFitFunctionWrapper fFunc
 
gsl_multifit_fdfsolver * fSolver
 
gsl_vector * fVec
 
gsl_matrix * fCov
 
const gsl_multifit_fdfsolver_type * fType
 

#include </mnt/vdb/lsf/workspace/root-makedoc/rootspi/rdoc/src/master/math/mathmore/src/GSLMultiFit.h>

Constructor & Destructor Documentation

ROOT::Math::GSLMultiFit::GSLMultiFit ( const gsl_multifit_fdfsolver_type *  type = 0)
inline

Default constructor No need to specify the type so far since only one solver exists so far.

Definition at line 59 of file GSLMultiFit.h.

ROOT::Math::GSLMultiFit::~GSLMultiFit ( )
inline

Destructor (no operations)

Definition at line 71 of file GSLMultiFit.h.

ROOT::Math::GSLMultiFit::GSLMultiFit ( const GSLMultiFit )
inlineprivate

Copy constructor.

Definition at line 83 of file GSLMultiFit.h.

Member Function Documentation

const double* ROOT::Math::GSLMultiFit::CovarMatrix ( ) const
inline

return covariance matrix of the parameters

Definition at line 151 of file GSLMultiFit.h.

Referenced by Edm(), and ROOT::Math::GSLNLSMinimizer::Minimize().

void ROOT::Math::GSLMultiFit::CreateSolver ( unsigned int  npoints,
unsigned int  npar 
)
inline

create the minimizer from the type and size of number of fitting points and number of parameters

Definition at line 97 of file GSLMultiFit.h.

Referenced by Set().

double ROOT::Math::GSLMultiFit::Edm ( ) const
inline

Definition at line 177 of file GSLMultiFit.h.

Referenced by ROOT::Math::GSLNLSMinimizer::Minimize().

const double* ROOT::Math::GSLMultiFit::Gradient ( ) const
inline

gradient value at the minimum

Definition at line 144 of file GSLMultiFit.h.

Referenced by Edm(), ROOT::Math::GSLNLSMinimizer::MinGradient(), and TestGradient().

int ROOT::Math::GSLMultiFit::Iterate ( )
inline

Definition at line 131 of file GSLMultiFit.h.

Referenced by ROOT::Math::GSLNLSMinimizer::Minimize().

std::string ROOT::Math::GSLMultiFit::Name ( ) const
inline

Definition at line 126 of file GSLMultiFit.h.

Referenced by ROOT::Math::GSLNLSMinimizer::Minimize().

GSLMultiFit& ROOT::Math::GSLMultiFit::operator= ( const GSLMultiFit rhs)
inlineprivate

Assignment operator.

Definition at line 88 of file GSLMultiFit.h.

template<class Func >
int ROOT::Math::GSLMultiFit::Set ( const std::vector< Func > &  funcVec,
const double x 
)
inline

set the solver parameters

Definition at line 104 of file GSLMultiFit.h.

Referenced by ROOT::Math::GSLNLSMinimizer::Minimize().

int ROOT::Math::GSLMultiFit::TestDelta ( double  absTol,
double  relTol 
) const
inline

test using abs and relative tolerance |dx| < absTol + relTol*|x| for every component

Definition at line 171 of file GSLMultiFit.h.

Referenced by ROOT::Math::GSLNLSMinimizer::Minimize().

int ROOT::Math::GSLMultiFit::TestGradient ( double  absTol) const
inline

test gradient (ask from solver gradient vector)

Definition at line 163 of file GSLMultiFit.h.

Referenced by ROOT::Math::GSLNLSMinimizer::Minimize().

const double* ROOT::Math::GSLMultiFit::X ( ) const
inline

parameter values at the minimum

Definition at line 137 of file GSLMultiFit.h.

Referenced by ROOT::Math::GSLNLSMinimizer::Minimize().

Member Data Documentation

gsl_matrix* ROOT::Math::GSLMultiFit::fCov
mutableprivate

Definition at line 201 of file GSLMultiFit.h.

Referenced by CovarMatrix(), Edm(), and ~GSLMultiFit().

GSLMultiFitFunctionWrapper ROOT::Math::GSLMultiFit::fFunc
private

Definition at line 197 of file GSLMultiFit.h.

Referenced by Set().

gsl_multifit_fdfsolver* ROOT::Math::GSLMultiFit::fSolver
private
const gsl_multifit_fdfsolver_type* ROOT::Math::GSLMultiFit::fType
private

Definition at line 202 of file GSLMultiFit.h.

Referenced by CreateSolver(), and GSLMultiFit().

gsl_vector* ROOT::Math::GSLMultiFit::fVec
mutableprivate

Definition at line 200 of file GSLMultiFit.h.

Referenced by Edm(), Gradient(), Set(), TestGradient(), and ~GSLMultiFit().

Collaboration diagram for ROOT::Math::GSLMultiFit:
[legend]

The documentation for this class was generated from the following file: