16 if (funStr.isEmpty()) {
27 return QString::fromStdString(fun->asString());
34 return QString::fromStdString(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.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class