20 setFunction(FunctionFactory::Instance().createInitialized(funStr));
27 return fun->asString();
34 return fun->asString();
47 for (
size_t i = 0; i < funFrom.
nParams(); ++i) {
This is an interface to a fitting function - a semi-abstarct class.
virtual size_t nParams() const =0
Total number of parameters.
virtual double getParameter(size_t i) const =0
Get i-th parameter.
virtual void setParameter(size_t, const double &value, bool explicitlySet=true)=0
Set i-th parameter.
virtual void setError(size_t i, double err)=0
Set the fitting error for a parameter.
virtual double getError(size_t i) const =0
Get the fitting error for a parameter.
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class