#include <fit_fix.h>
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_view &xdat, ovector_view &ydat, ovector_view &yerr, size_t npar, ovector_view &par, omatrix_view &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_view &xdat, ovector_view &ydat, ovector_view &yerr, size_t npar, ovector_view &par, bool_vec_t &fix, omatrix_view &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_view &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_view * | xp |
The user-specified initial vector. | |
Private Member Functions | |
fit_fix_pars (const fit_fix_pars &) | |
fit_fix_pars & | operator= (const fit_fix_pars &) |
virtual int fit | ( | size_t | ndat, | |
ovector_view & | xdat, | |||
ovector_view & | ydat, | |||
ovector_view & | yerr, | |||
size_t | npar, | |||
ovector_view & | par, | |||
omatrix_view & | 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 is returned in
chi2
.
Reimplemented from fit_base< param_t, fit_funct< param_t > >.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page