Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
o2scl::fit_funct11_strings Class Reference

String fitting function. More...

#include <fit_base.h>

Public Member Functions

template<class vec_string_t = std::vector<std::string>>
 fit_funct11_strings (std::string expr, vec_string_t &parms, std::string var)
 Specify a fitting function through a string.
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>>
double operator() (size_t np, const vec_t &p, double x)
 Using parameters in p, predict y given x.

Protected Member Functions

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

calculator calc
 The function parser.
std::map< std::string, double > vars
std::string st_form
 The expression.
std::vector< std::string > st_parms
 The parameters.
std::string st_var
 The variable.

Private Member Functions

 fit_funct11_strings (const fit_funct11_strings &)
fit_funct11_stringsoperator= (const fit_funct11_strings &)

Detailed Description

Default template arguments

Definition at line 49 of file fit_base.h.

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

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