Class gen_fit_funct (o2scl)¶
-
template<class vec_t = boost::numeric::ublas::vector<double>, class mat_t = boost::numeric::ublas::matrix<double>>
class gen_fit_funct¶ Generalized fitting function [abstract base].
Default template arguments
vec_t
- boost::numeric::ublas::vector < double >mat_t
- boost::numeric::ublas::matrix < double >
Subclassed by o2scl::fit_fix_pars< bool_vec_t, gen_fit_funct<>, boost::numeric::ublas::vector< double >, boost::numeric::ublas::matrix< double > >, o2scl::chi_fit_funct< vec_t, mat_t, fit_func_t >, o2scl::fit_fix_pars< bool_vec_t, func_t, vec_t, mat_t >
Public Functions
-
inline gen_fit_funct()¶
-
inline virtual ~gen_fit_funct()¶
-
virtual void operator()(size_t np, const vec_t &p, size_t nd, vec_t &f) = 0¶
Using parameters in
p
, compute the relative deviations inf
.
-
virtual void jac(size_t np, vec_t &p, size_t nd, vec_t &f, mat_t &J) = 0¶
Using parameters in
p
, compute the Jacobian inJ
.
-
virtual size_t get_ndata() = 0¶
Return the number of data points.
Private Functions
-
gen_fit_funct(const gen_fit_funct&)¶
-
gen_fit_funct &operator=(const gen_fit_funct&)¶