String fitting function. More...
#include <fit_base.h>
Default template arguments
vec_t - boost::numeric::ublas::vector < double > Definition at line 51 of file fit_base.h.
Public Member Functions | |
| template<class vec_string_t = std::vector<std::string>> | |
| fit_funct_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 |
| Desc. | |
| std::string | st_form |
| The expression. | |
| std::vector< std::string > | st_parms |
| The parameters. | |
| std::string | st_var |
| The variable. | |
Private Member Functions | |
| fit_funct_strings (const fit_funct_strings &) | |
| fit_funct_strings & | operator= (const fit_funct_strings &) |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).