40 void setParameter(
size_t,
const double &
value,
bool explicitlySet =
true)
override;
42 void setParameterDescription(
size_t,
const std::string &description)
override;
44 double getParameter(
size_t i)
const override;
46 void setParameter(
const std::string &name,
const double &
value,
bool explicitlySet =
true)
override;
48 void setParameterDescription(
const std::string &name,
const std::string &description)
override;
50 double getParameter(
const std::string &name)
const override;
52 bool hasParameter(
const std::string &name)
const override;
54 size_t nParams()
const override;
56 size_t parameterIndex(
const std::string &name)
const override;
58 std::string parameterName(
size_t i)
const override;
60 std::string parameterDescription(
size_t i)
const override;
62 bool isExplicitlySet(
size_t i)
const override;
64 double getError(
size_t i)
const override;
66 double getError(
const std::string &name)
const override;
68 void setError(
size_t i,
double err)
override;
70 void setError(
const std::string &name,
double err)
override;
75 void setUpForFit()
override;
79 IConstraint *getConstraint(
size_t i)
const override;
86 void declareParameter(
const std::string &name,
double initValue = 0,
const std::string &description =
"")
override;
97 size_t nAttributes()
const override;
99 std::vector<std::string> getAttributeNames()
const override;
101 Attribute getAttribute(
const std::string &name)
const override;
103 void setAttribute(
const std::string &name,
const Attribute &)
override;
105 bool hasAttribute(
const std::string &name)
const override;
107 std::string attributeName(
size_t i)
const override;
116 void init()
override;
121 virtual bool isSourceName(
const std::string &aName)
const;
125 void checkTargetFunction()
const;
double value
The value of the point.
Base class that represents the domain of a function.
FunctionGenerator is a partial implementation of IFunction that defines a function consisting of two ...
IFunction_sptr m_source
Function that calculates parameters of the target function.
virtual void buildTargetFunction() const =0
Build target function.
IFunction_sptr m_target
Function that actually calculates the output.
virtual void updateTargetFunction() const =0
Update target function.
bool m_dirty
Flag indicating that updateTargetFunction() is required.
size_t m_nOwnParams
Cached number of parameters in m_source.
A class to store values calculated by a function.
An interface to a constraint.
Attribute is a non-fitting parameter.
This is an interface to a fitting function - a semi-abstarct class.
ParameterStatus
Describe parameter status in relation to fitting: Active: Fit varies such parameter directly.
A reference to a parameter in a function.
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
Helper class which provides the Collimation Length for SANS instruments.