93 std::find_if(
m_aliases.cbegin(),
m_aliases.cend(), [i](
const auto &element) { return element.second == i; });
double value
The value of the point.
void setParameter(size_t, const double &value, bool explicitlySet=true) override
Set i-th parameter.
size_t parameterIndex(const std::string &name) const override
Returns the index of parameter name.
void setParameterDescription(size_t, const std::string &description) override
Set i-th parameter description.
double getParameter(size_t i) const override
Get i-th parameter.
std::string parameterName(size_t i) const override
Returns the name of parameter i.
This is an interface to a fitting function - a semi-abstarct class.
virtual std::string writeToString(const std::string &parentLocalAttributesStr="") const
Writes itself into a string.
virtual void addTies(const std::string &ties, bool isDefault=false)
Add several ties.
virtual void addConstraints(const std::string &str, bool isDefault=false)
Add a list of conatraints from a string.
void addDefaultTies(const std::string &ties)
Add default ties.
void setParameter(size_t i, const double &value, bool explicitlySet=true) override
Set i-th parameter.
std::string writeToString(const std::string &parentLocalAttributesStr="") const override
Writes itself into a string.
void setParameterDescription(size_t i, const std::string &description) override
Set i-th parameter description.
void setAlias(const std::string &parName, const std::string &alias)
Define an alias for a parameter.
std::map< std::string, size_t > m_aliases
Keep paramater aliases.
std::string name() const override
Returns the function's name.
size_t parameterIndex(const std::string &name) const override
Returns the index of parameter name.
void addDefaultConstraints(const std::string &constraints)
Add default constraints.
void addFunction(IFunction *fun)
Overload addFunction to take a bare pointer.
std::string parameterName(size_t i) const override
Returns the name of parameter i.
double getParameter(size_t i) const override
Get i-th parameter.
Exception for when an item is already in a collection.
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class