31 std::string
name()
const override {
return "ImmutableCompositeFunction"; }
34 CompositeFunction::setParameter(i,
value, explicitlySet);
38 CompositeFunction::setParameterDescription(i, description);
41 void setParameter(
const std::string &name,
const double &
value,
bool explicitlySet =
true)
override;
43 void setParameterDescription(
const std::string &name,
const std::string &description)
override;
45 double getParameter(
size_t i)
const override {
return CompositeFunction::getParameter(i); }
47 double getParameter(
const std::string &name)
const override;
49 size_t parameterIndex(
const std::string &name)
const override;
51 std::string parameterName(
size_t i)
const override;
55 using CompositeFunction::addFunction;
59 void setAlias(
const std::string &parName,
const std::string &alias);
61 void addDefaultTies(
const std::string &ties);
63 void addDefaultConstraints(
const std::string &constraints);
65 std::string writeToString(
const std::string &parentLocalAttributesStr =
"")
const override;
double value
The value of the point.
A composite function is a function containing other functions.
This is an interface to a fitting function - a semi-abstarct class.
Immutable composite function is a composite function which members cannot be added or removed after c...
void setParameter(size_t i, const double &value, bool explicitlySet=true) override
Set i-th parameter.
void setParameterDescription(size_t i, const std::string &description) override
Set i-th parameter description.
std::map< std::string, size_t > m_aliases
Keep paramater aliases.
std::string name() const override
Returns the function's name.
double getParameter(size_t i) const override
Get i-th parameter.
Helper class which provides the Collimation Length for SANS instruments.