Class covar_funct_strings (o2scl)¶
-
class covar_funct_strings : public o2scl::covar_funct¶
Covariance function: 1D from strings.
Public Functions
-
inline covar_funct_strings()¶
-
template<class vec_string_t = std::vector<std::string>>
inline covar_funct_strings(std::string expr, std::string expr_d, std::string expr_d2, std::string expr_i, vec_string_t &parms, std::string var, std::string var2, std::string var_lo, std::string var_hi)¶ Set the covariance function from strings.
-
template<class vec_string_t = std::vector<std::string>>
inline void set(std::string expr, std::string expr_d, std::string expr_d2, std::string expr_i, vec_string_t &parms, std::string var, std::string var2, std::string var_lo, std::string var_hi)¶ Set the covariance function from strings.
-
inline virtual size_t get_n_params()¶
Get the number of parameters.
-
inline virtual double operator()(double x, double y)¶
The covariance function.
-
inline virtual double deriv(double x, double y)¶
The derivative of the covariance function with respect to x.
-
inline virtual double deriv2(double x, double y)¶
The second derivative of the covariance function with respect to x.
-
inline virtual double integ(double x, double a, double b)¶
The integral of the covariance function at x between a and b.
Public Members
-
std::map<std::string, double> vars¶
The variable values.
-
std::string st_expr¶
The expressions to evaluate, stored as strings.
-
std::string st_expr_d¶
-
std::string st_expr_d2¶
-
std::string st_expr_i¶
-
std::vector<std::string> st_parms¶
The parameters.
-
std::string st_var¶
The variable.
-
std::string st_var2¶
The second variable.
-
std::string st_var_lo¶
The lower limit variable.
-
std::string st_var_hi¶
The upper limit variable.
-
inline covar_funct_strings()¶