20namespace MantidWidgets {
32 void setWorkspaceName(std::string
const &workspaceName);
34 [[nodiscard]] std::string domainName()
const;
35 [[nodiscard]] std::string
workspaceName() const noexcept {
return m_workspaceName; }
38 [[nodiscard]]
bool setStartX(
double startX);
39 [[nodiscard]]
bool setEndX(
double startX);
41 [[nodiscard]]
double startX() const noexcept {
return m_startX; }
42 [[nodiscard]]
double endX() const noexcept {
return m_endX; }
46 void removeFunction(std::string
const &function);
49 void setParameterValue(std::string
const ¶meter,
double newValue);
50 [[nodiscard]]
double getParameterValue(std::string
const ¶meter)
const;
52 void setParameterFixed(std::string
const ¶meter,
bool fix)
const;
53 [[nodiscard]]
bool isParameterFixed(std::string
const ¶meter)
const;
58 [[nodiscard]]
bool hasParameter(std::string
const ¶meter)
const;
59 [[nodiscard]]
bool isParameterActive(std::string
const ¶meter)
const;
60 [[nodiscard]] std::string getParameterTie(std::string
const ¶meter)
const;
61 [[nodiscard]] std::string getParameterConstraint(std::string
const ¶meter)
const;
63 void clearParameterTie(std::string
const ¶meter);
64 [[nodiscard]]
bool updateParameterTie(std::string
const ¶meter, std::string
const &tie);
66 void removeParameterConstraint(std::string
const ¶meter);
67 void updateParameterConstraint(std::string
const &functionIndex, std::string
const ¶meter,
68 std::string
const &constraint);
70 [[nodiscard]] std::vector<std::string> getParametersTiedTo(std::string
const ¶meter)
const;
72 [[nodiscard]]
bool isParameterValueWithinConstraints(std::string
const ¶meter,
double value)
const;
75 [[nodiscard]]
bool setParameterTie(std::string
const ¶meter, std::string
const &tie);
77 [[nodiscard]]
double getTieValue(std::string
const &tie)
const;
79 [[nodiscard]]
bool isValidParameterTie(std::string
const ¶meter, std::string
const &tie)
const;
80 [[nodiscard]]
bool isValidParameterConstraint(std::string
const ¶meter, std::string
const &constraint)
const;
82 [[nodiscard]]
bool isValidStartX(
double startX)
const;
83 [[nodiscard]]
bool isValidEndX(
double endX)
const;
84 [[nodiscard]] std::pair<double, double> xLimits()
const;
93 std::string
const ¶meter, std::string
const &constraint);
95 void appendParametersTiedTo(std::vector<std::string> &tiedParameters, std::string
const ¶meter,
96 std::size_t
const ¶meterIndex)
const;
98 void removeInvalidatedTies();
#define EXPORT_OPT_MANTIDQT_COMMON
double value
The value of the point.
IPeaksWorkspace_sptr workspace
This class is used to store all data relating to a single domain to be fitted.
std::string workspaceName() const noexcept
WorkspaceIndex m_workspaceIndex
double endX() const noexcept
Mantid::API::IFunction_sptr m_function
WorkspaceIndex workspaceIndex() const noexcept
double startX() const noexcept
std::string m_workspaceName
Attribute is a non-fitting parameter.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
std::shared_ptr< CompositeFunction > CompositeFunction_sptr
shared pointer to the composite function base class