Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes | Private Member Functions
fit_fix_pars< bool_vec_t > Class Template Reference

Multidimensional fitting fixing some parameters and varying others.

#include <fit_fix.h>

Inheritance diagram for fit_fix_pars< bool_vec_t >:
fit_base< func_t, vec_t, mat_t >

Detailed Description

template<class bool_vec_t>
class fit_fix_pars< bool_vec_t >

Definition at line 37 of file fit_fix.h.

Public Member Functions

 fit_fix_pars ()
 Specify the member function pointer.
virtual int fit (size_t ndat, ovector_base &xdat, ovector_base &ydat, ovector_base &yerr, size_t npar, ovector_base &par, omatrix_base &covar, double &chi2, fit_funct<> &fitfun)
 Fit the data specified in (xdat,ydat) to the function fitfun with the parameters in par.
virtual int fit_fix (size_t ndat, ovector_base &xdat, ovector_base &ydat, ovector_base &yerr, size_t npar, ovector_base &par, bool_vec_t &fix, omatrix_base &covar, double &chi2, fit_funct<> &fitfun)
 Fit function func while fixing some parameters as specified in fix.
int set_fit (fit_base< fit_funct_mfptr< fit_fix_pars< bool_vec_t > > > &fitter)
 Change the base minimizer.

Data Fields

gsl_fit< fit_funct_mfptr
< fit_fix_pars< bool_vec_t > > > 
def_fit
 The default base minimizer.

Protected Member Functions

virtual double fit_func (size_t nv, const ovector_base &x, double xx)
 The new function to send to the minimizer.

Protected Attributes

fit_base< fit_funct_mfptr
< fit_fix_pars< bool_vec_t > > > * 
fitp
 The minimizer.
fit_functfuncp
 The user-specified function.
size_t unv
 The user-specified number of variables.
size_t nv_new
 The new number of variables.
bool_vec_t * fixp
 Specify which parameters to fix.
ovector_basexp
 The user-specified initial vector.

Private Member Functions

 fit_fix_pars (const fit_fix_pars &)
fit_fix_parsoperator= (const fit_fix_pars &)

Member Function Documentation

template<class bool_vec_t >
virtual int fit_fix_pars< bool_vec_t >::fit ( size_t  ndat,
ovector_base xdat,
ovector_base ydat,
ovector_base yerr,
size_t  npar,
ovector_base par,
omatrix_base covar,
double &  chi2,
fit_funct<> &  fitfun 
) [inline, virtual]

The covariance matrix for the parameters is returned in covar and the value of $ \chi^2 $ is returned in chi2.

Definition at line 61 of file fit_fix.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.