Class fit_funct_strings (o2scl)

O2scl : Class List

class fit_funct_strings

String fitting function.

Default template arguments

  • vec_t - boost::numeric::ublas::vector < double >

Public Functions

template<class vec_string_t = std::vector<std::string>>
inline fit_funct_strings(std::string expr, vec_string_t &parms, std::string var)

Specify a fitting function through a string.

inline int set_aux_parm(std::string name, double val)

Set the values of the auxilliary parameters that were specified in auxp in the constructor.

template<class vec_t = boost::numeric::ublas::vector<double>>
inline double operator()(size_t np, const vec_t &p, double x)

Using parameters in p, predict y given x.

Protected Functions

inline fit_funct_strings()
int set_function(std::string expr, std::string parms, std::string var, int nauxp = 0, std::string auxp = "")

Specify the strings which define the fitting function.

Protected Attributes

o2scl::calc_utf8 calc

The function parser.

std::map<std::string, double> vars

The variables.

std::string st_form

The expression.

std::vector<std::string> st_parms

The parameters.

std::string st_var

The variable.

Private Functions

fit_funct_strings(const fit_funct_strings&)
fit_funct_strings &operator=(const fit_funct_strings&)