Logo ROOT  
Reference Guide
ROOT::Math::GSLMultiFit Class Reference

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

Definition at line 91 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...
 
const doubleCovarMatrix () const
 return covariance matrix of the parameters 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...
 
double Edm () const
 
const doubleGradient () const
 gradient value at the minimum More...
 
int Iterate ()
 
std::string Name () const
 
template<class Func >
int Set (const std::vector< Func > &funcVec, const double *x)
 set the solver parameters More...
 
int TestDelta (double absTol, double relTol) const
 test using abs and relative tolerance |dx| < absTol + relTol*|x| for every component More...
 
int TestGradient (double absTol) const
 test gradient (ask from solver gradient vector) More...
 
const doubleX () const
 parameter values at the minimum More...
 

Private Member Functions

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

Private Attributes

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

#include </home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/src/master/math/mathmore/src/GSLMultiFit.h>

Constructor & Destructor Documentation

◆ GSLMultiFit() [1/2]

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 118 of file GSLMultiFit.h.

◆ ~GSLMultiFit()

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

Destructor (no operations)

Definition at line 134 of file GSLMultiFit.h.

◆ GSLMultiFit() [2/2]

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

Copy constructor.

Definition at line 150 of file GSLMultiFit.h.

Member Function Documentation

◆ CovarMatrix()

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

return covariance matrix of the parameters

Definition at line 239 of file GSLMultiFit.h.

◆ CreateSolver()

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 164 of file GSLMultiFit.h.

◆ Edm()

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

Definition at line 267 of file GSLMultiFit.h.

◆ Gradient()

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

gradient value at the minimum

Definition at line 228 of file GSLMultiFit.h.

◆ Iterate()

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

Definition at line 215 of file GSLMultiFit.h.

◆ Name()

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

Definition at line 210 of file GSLMultiFit.h.

◆ operator=()

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

Assignment operator.

Definition at line 155 of file GSLMultiFit.h.

◆ Set()

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

set the solver parameters

Definition at line 181 of file GSLMultiFit.h.

◆ TestDelta()

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 261 of file GSLMultiFit.h.

◆ TestGradient()

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

test gradient (ask from solver gradient vector)

Definition at line 253 of file GSLMultiFit.h.

◆ X()

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

parameter values at the minimum

Definition at line 221 of file GSLMultiFit.h.

Member Data Documentation

◆ fCov

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

Definition at line 291 of file GSLMultiFit.h.

◆ fFunc

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

Definition at line 286 of file GSLMultiFit.h.

◆ fSolver

gsl_multifit_fdfsolver* ROOT::Math::GSLMultiFit::fSolver
private

Definition at line 287 of file GSLMultiFit.h.

◆ fTmp

gsl_vector* ROOT::Math::GSLMultiFit::fTmp
mutableprivate

Definition at line 290 of file GSLMultiFit.h.

◆ fType

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

Definition at line 295 of file GSLMultiFit.h.

◆ fVec

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

Definition at line 289 of file GSLMultiFit.h.


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