fit_fix_pars Class Template Reference

Multidimensional fitting fixing some parameters and varying others. More...

#include <fit_fix.h>

Inheritance diagram for fit_fix_pars:

fit_base

Detailed Description

template<class param_t, class bool_vec_t>
class fit_fix_pars< param_t, bool_vec_t >

Multidimensional fitting fixing some parameters and varying others.

Definition at line 38 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, param_t &pa, fit_funct< param_t > &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, param_t &pa, fit_funct< param_t > &fitfun)
 Fit function func while fixing some parameters as specified in fix.
int set_fit (fit_base< param_t, fit_funct_mfptr< fit_fix_pars, param_t > > &fitter)
 Change the base minimizer.

Data Fields

gsl_fit< param_t,
fit_funct_mfptr< fit_fix_pars,
param_t > > 
def_fit
 The default base minimizer.

Protected Member Functions

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

Protected Attributes

fit_base< param_t,
fit_funct_mfptr< fit_fix_pars,
param_t > > * 
fitp
 The minimizer.
fit_funct< param_t > * funcp
 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

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,
param_t &  pa,
fit_funct< param_t > &  fitfun 
) [inline, virtual]

Fit the data specified in (xdat,ydat) to the function fitfun with the parameters in par.

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

Definition at line 62 of file fit_fix.h.


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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page