Mantid
|
This class stores the domain and fit data to be fitted to. More...
#include <FitScriptGeneratorModel.h>
Public Member Functions | |
void | addFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function) override |
void | addWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX, double endX) override |
FitScriptGeneratorModel () | |
FitScriptGeneratorModel (FitScriptGeneratorModel const &model)=delete | |
std::string | generatePythonFitScript (std::tuple< std::string, std::string, std::string, std::string, std::string, bool > const &fitOptions, std::string const &filepath="") override |
std::string | getAdjustedFunctionIndex (std::string const ¶meter) const override |
std::string | getDomainName (FitDomainIndex domainIndex) const override |
std::string | getEquivalentFunctionIndexForDomain (FitDomainIndex domainIndex, std::string const &functionIndex) const override |
std::string | getEquivalentFunctionIndexForDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex) const override |
std::string | getEquivalentParameterTieForDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &fullTie) const override |
FittingMode | getFittingMode () const noexcept override |
std::string | getFullParameter (FitDomainIndex domainIndex, std::string const ¶meter) const override |
std::string | getFullTie (FitDomainIndex domainIndex, std::string const &tie) const override |
Mantid::API::IFunction_sptr | getFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const override |
std::vector< GlobalParameter > | getGlobalParameters () const noexcept override |
std::vector< GlobalTie > | getGlobalTies () const noexcept override |
std::string | getParameterConstraint (FitDomainIndex domainIndex, std::string const &fullParameter) const override |
std::string | getParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter) const override |
double | getParameterValue (FitDomainIndex domainIndex, std::string const &fullParameter) const override |
bool | hasParameter (FitDomainIndex domainIndex, std::string const &fullParameter) const override |
bool | hasWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const override |
bool | isParameterFixed (FitDomainIndex domainIndex, std::string const &fullParameter) const override |
bool | isSimultaneousMode () const override |
std::tuple< bool, std::string > | isValid () const override |
std::size_t | numberOfDomains () const noexcept override |
FitScriptGeneratorModel & | operator= (FitScriptGeneratorModel const &model)=delete |
void | removeDomain (FitDomainIndex domainIndex) override |
void | removeFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function) override |
void | removeParameterConstraint (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter) override |
void | renameWorkspace (std::string const &workspaceName, std::string const &newName) override |
void | setFittingMode (FittingMode fittingMode) override |
void | setFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function) override |
void | setGlobalParameters (std::vector< std::string > const ¶meters) override |
void | setOutputBaseName (std::string const &outputBaseName) override |
void | setParameterConstraint (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &constraint) override |
void | setParameterFixed (FitDomainIndex domainIndex, std::string const &fullParameter, bool fix) override |
void | setParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &tie) override |
void | setParameterValue (FitDomainIndex domainIndex, std::string const &fullParameter, double value) override |
void | subscribePresenter (IFitScriptGeneratorPresenter *presenter) override |
void | updateAttributeValue (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullAttribute, Mantid::API::IFunction::Attribute const &newValue) override |
bool | updateEndX (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double endX) override |
void | updateParameterConstraint (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex, std::string const &constraint) override |
void | updateParameterTie (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &tie) override |
void | updateParameterValue (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, double newValue) override |
bool | updateStartX (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX) override |
~FitScriptGeneratorModel () | |
Public Member Functions inherited from MantidQt::MantidWidgets::IFitScriptGeneratorModel | |
virtual void | addFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)=0 |
virtual void | addWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX, double endX)=0 |
virtual std::string | generatePythonFitScript (std::tuple< std::string, std::string, std::string, std::string, std::string, bool > const &fitOptions, std::string const &filepath="")=0 |
virtual std::string | getAdjustedFunctionIndex (std::string const ¶meter) const =0 |
virtual std::string | getDomainName (FitDomainIndex domainIndex) const =0 |
virtual std::string | getEquivalentFunctionIndexForDomain (FitDomainIndex domainIndex, std::string const &functionIndex) const =0 |
virtual std::string | getEquivalentFunctionIndexForDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex) const =0 |
virtual std::string | getEquivalentParameterTieForDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &fullTie) const =0 |
virtual FittingMode | getFittingMode () const =0 |
virtual std::string | getFullParameter (FitDomainIndex domainIndex, std::string const ¶meter) const =0 |
virtual std::string | getFullTie (FitDomainIndex domainIndex, std::string const &tie) const =0 |
virtual Mantid::API::IFunction_sptr | getFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const =0 |
virtual std::vector< GlobalParameter > | getGlobalParameters () const =0 |
virtual std::vector< GlobalTie > | getGlobalTies () const =0 |
virtual std::string | getParameterConstraint (FitDomainIndex domainIndex, std::string const &fullParameter) const =0 |
virtual std::string | getParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter) const =0 |
virtual double | getParameterValue (FitDomainIndex domainIndex, std::string const &fullParameter) const =0 |
virtual bool | hasParameter (FitDomainIndex domainIndex, std::string const &fullParameter) const =0 |
virtual bool | hasWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const =0 |
virtual bool | isParameterFixed (FitDomainIndex domainIndex, std::string const &fullParameter) const =0 |
virtual bool | isSimultaneousMode () const =0 |
virtual std::tuple< bool, std::string > | isValid () const =0 |
virtual std::size_t | numberOfDomains () const =0 |
virtual void | removeDomain (FitDomainIndex domainIndex)=0 |
virtual void | removeFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)=0 |
virtual void | removeParameterConstraint (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter)=0 |
virtual void | renameWorkspace (std::string const &workspaceName, std::string const &newName)=0 |
virtual void | setFittingMode (FittingMode fittingMode)=0 |
virtual void | setFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)=0 |
virtual void | setGlobalParameters (std::vector< std::string > const ¶meters)=0 |
virtual void | setOutputBaseName (std::string const &outputBaseName)=0 |
virtual void | setParameterConstraint (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &constraint)=0 |
virtual void | setParameterFixed (FitDomainIndex domainIndex, std::string const &fullParameter, bool fix)=0 |
virtual void | setParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &tie)=0 |
virtual void | setParameterValue (FitDomainIndex domainIndex, std::string const &fullParameter, double value)=0 |
virtual void | subscribePresenter (IFitScriptGeneratorPresenter *presenter)=0 |
virtual void | updateAttributeValue (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullAttribute, Mantid::API::IFunction::Attribute const &newValue)=0 |
virtual bool | updateEndX (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double endX)=0 |
virtual void | updateParameterConstraint (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex, std::string const &constraint)=0 |
virtual void | updateParameterTie (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &tie)=0 |
virtual void | updateParameterValue (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, double newValue)=0 |
virtual bool | updateStartX (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX)=0 |
virtual | ~IFitScriptGeneratorModel ()=default |
Private Member Functions | |
void | addGlobalParameterTies (Mantid::API::MultiDomainFunction_sptr &function) const |
void | addGlobalTies (Mantid::API::MultiDomainFunction_sptr &function) const |
bool | checkFunctionExistsInAllDomains () const |
bool | checkFunctionIsSameForAllDomains () const |
void | checkGlobalParameterhasNoTies (std::string const &globalParameter) const |
void | checkGlobalTies () |
void | checkParameterIsInAllDomains (std::string const &globalParameter) const |
void | checkParameterIsNotGlobal (std::string const &fullParameter) const |
void | clearGlobalTie (std::string const &fullParameter) |
std::string | constructGlobalParameterTie (GlobalParameter const &globalParameter) const |
FitDomainIndex | findDomainIndex (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const |
std::vector< GlobalTie >::const_iterator | findGlobalTie (std::string const &fullParameter) const |
std::vector< std::unique_ptr< FitDomain > >::const_iterator | findWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const |
std::string | generatePermissibleWarnings () const |
std::vector< double > | getEndXs () const |
std::string | getEquivalentParameterTieForDomain (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &fullTie) const |
std::string | getFittingType () const |
Mantid::API::IFunction_sptr | getFunction () const |
std::vector< std::string > | getInputWorkspaces () const |
Mantid::API::IFunction_sptr | getMultiDomainFunction () const |
template<typename Getter > | |
auto | getParameterProperty (Getter &&func, FitDomainIndex domainIndex, std::string const &fullParameter) const |
std::vector< double > | getStartXs () const |
std::vector< std::size_t > | getWorkspaceIndices () const |
bool | hasGlobalTie (std::string const &fullParameter) const |
bool | isParameterValueWithinConstraints (FitDomainIndex domainIndex, std::string const &fullParameter, double value) const |
template<typename T , typename Function > | |
std::vector< T > | transformDomains (Function const &func) const |
void | tryToAdjustParameterInGlobalTieIfInvalidated (GlobalTie &globalTie) |
void | tryToAdjustTieInGlobalTieIfInvalidated (GlobalTie &globalTie) |
void | updateGlobalParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &fullTie) |
void | updateLocalParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &fullTie) |
void | updateParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &fullTie) |
void | updateParameterValueInGlobalTie (GlobalTie const &globalTie, double newValue) |
void | updateParameterValuesWithGlobalTieTo (std::string const &fullParameter, double newValue) |
void | updateParameterValuesWithLocalTieTo (FitDomainIndex domainIndex, std::string const ¶meter, double newValue) |
bool | validGlobalTie (std::string const &fullParameter, std::string const &fullTie) const |
bool | validParameter (FitDomainIndex domainIndex, std::string const &fullParameter) const |
bool | validParameter (std::string const &fullParameter) const |
bool | validTie (std::string const &fullTie) const |
Private Attributes | |
std::vector< std::unique_ptr< FitDomain > > | m_fitDomains |
FittingMode | m_fittingMode |
std::vector< GlobalParameter > | m_globalParameters |
std::vector< GlobalTie > | m_globalTies |
std::string | m_outputBaseName |
IFitScriptGeneratorPresenter * | m_presenter |
This class stores the domain and fit data to be fitted to.
This data is used to generate a python script for complex Mantid fitting.
Definition at line 34 of file FitScriptGeneratorModel.h.
MantidQt::MantidWidgets::FitScriptGeneratorModel::FitScriptGeneratorModel | ( | ) |
Definition at line 91 of file FitScriptGeneratorModel.cpp.
|
delete |
MantidQt::MantidWidgets::FitScriptGeneratorModel::~FitScriptGeneratorModel | ( | ) |
Definition at line 95 of file FitScriptGeneratorModel.cpp.
References m_fitDomains, m_globalParameters, and m_globalTies.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 172 of file FitScriptGeneratorModel.cpp.
References checkGlobalTies(), findDomainIndex(), and m_fitDomains.
|
private |
Definition at line 738 of file FitScriptGeneratorModel.cpp.
References constructGlobalParameterTie(), and m_globalParameters.
Referenced by getMultiDomainFunction().
|
private |
Definition at line 750 of file FitScriptGeneratorModel.cpp.
References m_globalTies.
Referenced by getMultiDomainFunction().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 114 of file FitScriptGeneratorModel.cpp.
References hasWorkspaceDomain(), m_fitDomains, std::to_string(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
private |
Definition at line 605 of file FitScriptGeneratorModel.cpp.
References m_fitDomains.
Referenced by isValid().
|
private |
Definition at line 610 of file FitScriptGeneratorModel.cpp.
References m_fitDomains, and numberOfDomains().
Referenced by generatePermissibleWarnings().
|
private |
Definition at line 579 of file FitScriptGeneratorModel.cpp.
References hasGlobalTie(), m_fitDomains, and m_globalTies.
Referenced by setGlobalParameters().
|
private |
Definition at line 420 of file FitScriptGeneratorModel.cpp.
References m_globalTies, m_presenter, MantidQt::MantidWidgets::IFitScriptGeneratorPresenter::setGlobalTies(), tryToAdjustParameterInGlobalTieIfInvalidated(), tryToAdjustTieInGlobalTieIfInvalidated(), validGlobalTie(), and validParameter().
Referenced by addFunction(), removeDomain(), removeFunction(), and setFunction().
|
private |
Definition at line 570 of file FitScriptGeneratorModel.cpp.
References hasParameter(), and m_fitDomains.
Referenced by setGlobalParameters().
|
private |
Definition at line 594 of file FitScriptGeneratorModel.cpp.
References getAdjustedFunctionIndex(), and m_globalParameters.
Referenced by updateParameterTie().
|
private |
Definition at line 412 of file FitScriptGeneratorModel.cpp.
References findGlobalTie(), m_globalTies, m_presenter, and MantidQt::MantidWidgets::IFitScriptGeneratorPresenter::setGlobalTies().
Referenced by updateGlobalParameterTie(), updateLocalParameterTie(), and updateParameterValueInGlobalTie().
|
private |
Definition at line 743 of file FitScriptGeneratorModel.cpp.
References MantidQt::MantidWidgets::GlobalParameter::m_parameter, numberOfDomains(), and std::to_string().
Referenced by addGlobalParameterTies().
|
private |
Definition at line 135 of file FitScriptGeneratorModel.cpp.
References findWorkspaceDomain(), m_fitDomains, std::to_string(), and MantidQt::MantidWidgets::IndexType< Class >::value.
Referenced by addFunction(), getEquivalentFunctionIndexForDomain(), getEquivalentParameterTieForDomain(), getFunction(), removeFunction(), removeParameterConstraint(), setFunction(), updateAttributeValue(), updateEndX(), updateParameterConstraint(), updateParameterTie(), updateParameterValue(), and updateStartX().
|
private |
Definition at line 466 of file FitScriptGeneratorModel.cpp.
References m_globalTies.
Referenced by clearGlobalTie(), and hasGlobalTie().
|
private |
Definition at line 146 of file FitScriptGeneratorModel.cpp.
References m_fitDomains.
Referenced by findDomainIndex(), and hasWorkspaceDomain().
|
private |
Definition at line 639 of file FitScriptGeneratorModel.cpp.
References checkFunctionIsSameForAllDomains(), m_fittingMode, and MantidQt::MantidWidgets::SEQUENTIAL.
Referenced by isValid().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 648 of file FitScriptGeneratorModel.cpp.
References getEndXs(), getFittingType(), getFunction(), getInputWorkspaces(), getStartXs(), getWorkspaceIndices(), and Mantid::Kernel::SingletonHolder< T >::Instance().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 233 of file FitScriptGeneratorModel.cpp.
References MantidQt::MantidWidgets::isNumber(), m_fittingMode, and MantidQt::MantidWidgets::SEQUENTIAL.
Referenced by checkParameterIsNotGlobal(), getParameterProperty(), isParameterValueWithinConstraints(), removeParameterConstraint(), setParameterConstraint(), setParameterFixed(), setParameterValue(), updateAttributeValue(), updateGlobalParameterTie(), updateLocalParameterTie(), updateParameterConstraint(), updateParameterValue(), updateParameterValueInGlobalTie(), and validParameter().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 499 of file FitScriptGeneratorModel.cpp.
References m_fitDomains, numberOfDomains(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
private |
Definition at line 690 of file FitScriptGeneratorModel.cpp.
Referenced by generatePythonFitScript().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 199 of file FitScriptGeneratorModel.cpp.
References m_fittingMode, numberOfDomains(), MantidQt::MantidWidgets::SIMULTANEOUS, and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 192 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), and getEquivalentFunctionIndexForDomain().
Referenced by getEquivalentFunctionIndexForDomain().
|
private |
Definition at line 223 of file FitScriptGeneratorModel.cpp.
References MantidQt::MantidWidgets::getFunctionIndexAt(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 209 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), getEquivalentParameterTieForDomain(), MantidQt::MantidWidgets::isNumber(), m_fittingMode, MantidQt::MantidWidgets::SEQUENTIAL, and validTie().
Referenced by getEquivalentParameterTieForDomain().
|
inlineoverridevirtualnoexcept |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 100 of file FitScriptGeneratorModel.h.
|
private |
Definition at line 703 of file FitScriptGeneratorModel.cpp.
References m_fittingMode, MantidQt::MantidWidgets::SEQUENTIAL, and MantidQt::MantidWidgets::SIMULTANEOUS.
Referenced by generatePythonFitScript().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 242 of file FitScriptGeneratorModel.cpp.
References m_fittingMode, MantidQt::MantidWidgets::SEQUENTIAL, std::to_string(), and MantidQt::MantidWidgets::IndexType< Class >::value.
Referenced by getFullTie().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 248 of file FitScriptGeneratorModel.cpp.
References getFullParameter(), and MantidQt::MantidWidgets::isNumber().
Referenced by setParameterTie().
|
private |
Definition at line 714 of file FitScriptGeneratorModel.cpp.
References getMultiDomainFunction(), m_fitDomains, m_fittingMode, MantidQt::MantidWidgets::SEQUENTIAL, and MantidQt::MantidWidgets::SIMULTANEOUS.
Referenced by generatePythonFitScript().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 186 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), and m_fitDomains.
|
inlineoverridevirtualnoexcept |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 93 of file FitScriptGeneratorModel.h.
|
inlineoverridevirtualnoexcept |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 89 of file FitScriptGeneratorModel.h.
|
private |
Definition at line 675 of file FitScriptGeneratorModel.cpp.
Referenced by generatePythonFitScript().
|
private |
Definition at line 725 of file FitScriptGeneratorModel.cpp.
References addGlobalParameterTies(), addGlobalTies(), m_fitDomains, and numberOfDomains().
Referenced by getFunction().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 565 of file FitScriptGeneratorModel.cpp.
References MantidQt::MantidWidgets::FitDomain::getParameterConstraint(), and getParameterProperty().
|
private |
Definition at line 201 of file FitScriptGeneratorModel.h.
References getAdjustedFunctionIndex(), m_fitDomains, numberOfDomains(), and MantidQt::MantidWidgets::IndexType< Class >::value.
Referenced by getParameterConstraint(), getParameterTie(), getParameterValue(), hasParameter(), and isParameterFixed().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 560 of file FitScriptGeneratorModel.cpp.
References getParameterProperty(), and MantidQt::MantidWidgets::FitDomain::getParameterTie().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 552 of file FitScriptGeneratorModel.cpp.
References getParameterProperty(), and MantidQt::MantidWidgets::FitDomain::getParameterValue().
Referenced by updateGlobalParameterTie(), and validGlobalTie().
|
private |
Definition at line 685 of file FitScriptGeneratorModel.cpp.
Referenced by generatePythonFitScript().
|
private |
Definition at line 680 of file FitScriptGeneratorModel.cpp.
Referenced by generatePythonFitScript().
|
private |
Definition at line 462 of file FitScriptGeneratorModel.cpp.
References findGlobalTie(), and m_globalTies.
Referenced by checkGlobalParameterhasNoTies(), and updateParameterValue().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 506 of file FitScriptGeneratorModel.cpp.
References getParameterProperty(), and MantidQt::MantidWidgets::FitDomain::hasParameter().
Referenced by checkParameterIsInAllDomains().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 123 of file FitScriptGeneratorModel.cpp.
References findWorkspaceDomain(), and m_fitDomains.
Referenced by addWorkspaceDomain().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 556 of file FitScriptGeneratorModel.cpp.
References getParameterProperty(), and MantidQt::MantidWidgets::FitDomain::isParameterFixed().
|
private |
Definition at line 403 of file FitScriptGeneratorModel.cpp.
References getAdjustedFunctionIndex(), m_fitDomains, numberOfDomains(), value, and MantidQt::MantidWidgets::IndexType< Class >::value.
Referenced by validGlobalTie().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 497 of file FitScriptGeneratorModel.cpp.
References m_fittingMode, and MantidQt::MantidWidgets::SIMULTANEOUS.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 622 of file FitScriptGeneratorModel.cpp.
References checkFunctionExistsInAllDomains(), generatePermissibleWarnings(), m_outputBaseName, and numberOfDomains().
|
inlineoverridevirtualnoexcept |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 120 of file FitScriptGeneratorModel.h.
Referenced by checkFunctionIsSameForAllDomains(), constructGlobalParameterTie(), getDomainName(), getEquivalentFunctionIndexForDomain(), getMultiDomainFunction(), getParameterProperty(), isParameterValueWithinConstraints(), isValid(), setParameterConstraint(), setParameterFixed(), setParameterTie(), setParameterValue(), transformDomains(), and validParameter().
|
delete |
References Mantid::API::renameWorkspace().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 103 of file FitScriptGeneratorModel.cpp.
References checkGlobalTies(), m_fitDomains, and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 165 of file FitScriptGeneratorModel.cpp.
References checkGlobalTies(), findDomainIndex(), and m_fitDomains.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 352 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), getAdjustedFunctionIndex(), and m_fitDomains.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 128 of file FitScriptGeneratorModel.cpp.
References m_fitDomains.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 486 of file FitScriptGeneratorModel.cpp.
References m_fittingMode, m_globalParameters, m_globalTies, m_presenter, MantidQt::MantidWidgets::SEQUENTIAL_AND_SIMULTANEOUS, MantidQt::MantidWidgets::IFitScriptGeneratorPresenter::setGlobalParameters(), and MantidQt::MantidWidgets::IFitScriptGeneratorPresenter::setGlobalTies().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 179 of file FitScriptGeneratorModel.cpp.
References checkGlobalTies(), findDomainIndex(), and m_fitDomains.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 471 of file FitScriptGeneratorModel.cpp.
References checkGlobalParameterhasNoTies(), checkParameterIsInAllDomains(), and m_globalParameters.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 482 of file FitScriptGeneratorModel.cpp.
References m_outputBaseName.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 538 of file FitScriptGeneratorModel.cpp.
References getAdjustedFunctionIndex(), m_fitDomains, numberOfDomains(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 519 of file FitScriptGeneratorModel.cpp.
References getAdjustedFunctionIndex(), m_fitDomains, numberOfDomains(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 528 of file FitScriptGeneratorModel.cpp.
References getFullTie(), numberOfDomains(), updateParameterTie(), validTie(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 510 of file FitScriptGeneratorModel.cpp.
References getAdjustedFunctionIndex(), m_fitDomains, numberOfDomains(), value, and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 101 of file FitScriptGeneratorModel.cpp.
References m_presenter.
Referenced by MockFitScriptGeneratorPresenter::MockFitScriptGeneratorPresenter().
|
private |
Definition at line 696 of file FitScriptGeneratorModel.cpp.
References m_fitDomains, and numberOfDomains().
|
private |
Definition at line 436 of file FitScriptGeneratorModel.cpp.
References MantidQt::MantidWidgets::GlobalTie::m_parameter, MantidQt::MantidWidgets::GlobalTie::toCompositeParameter(), MantidQt::MantidWidgets::GlobalTie::toNonCompositeParameter(), and validParameter().
Referenced by checkGlobalTies().
|
private |
Definition at line 449 of file FitScriptGeneratorModel.cpp.
References MantidQt::MantidWidgets::GlobalTie::m_parameter, MantidQt::MantidWidgets::GlobalTie::m_tie, MantidQt::MantidWidgets::GlobalTie::toCompositeParameter(), MantidQt::MantidWidgets::GlobalTie::toNonCompositeParameter(), and validGlobalTie().
Referenced by checkGlobalTies().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 293 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), getAdjustedFunctionIndex(), and m_fitDomains.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 160 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), and m_fitDomains.
|
private |
Definition at line 333 of file FitScriptGeneratorModel.cpp.
References clearGlobalTie(), Mantid::API::g_log, getAdjustedFunctionIndex(), getParameterValue(), m_fitDomains, m_globalTies, validGlobalTie(), validParameter(), MantidQt::MantidWidgets::IndexType< Class >::value, and Mantid::Kernel::Logger::warning().
Referenced by updateParameterTie().
|
private |
Definition at line 320 of file FitScriptGeneratorModel.cpp.
References clearGlobalTie(), Mantid::API::g_log, getAdjustedFunctionIndex(), m_fitDomains, m_fittingMode, validParameter(), MantidQt::MantidWidgets::IndexType< Class >::value, and Mantid::Kernel::Logger::warning().
Referenced by updateParameterTie().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 358 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), getAdjustedFunctionIndex(), and m_fitDomains.
|
private |
Definition at line 310 of file FitScriptGeneratorModel.cpp.
References checkParameterIsNotGlobal(), m_fittingMode, MantidQt::MantidWidgets::SEQUENTIAL, updateGlobalParameterTie(), updateLocalParameterTie(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 300 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), Mantid::API::g_log, updateParameterTie(), validTie(), and Mantid::Kernel::Logger::warning().
Referenced by setParameterTie(), and updateParameterTie().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 254 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), getAdjustedFunctionIndex(), hasGlobalTie(), m_fitDomains, m_fittingMode, MantidQt::MantidWidgets::SIMULTANEOUS, updateParameterValuesWithGlobalTieTo(), and updateParameterValuesWithLocalTieTo().
|
private |
Definition at line 284 of file FitScriptGeneratorModel.cpp.
References clearGlobalTie(), getAdjustedFunctionIndex(), MantidQt::MantidWidgets::getFunctionIndexAt(), m_fitDomains, MantidQt::MantidWidgets::GlobalTie::m_parameter, MantidQt::MantidWidgets::GlobalTie::m_tie, and validGlobalTie().
Referenced by updateParameterValuesWithGlobalTieTo().
|
private |
Definition at line 275 of file FitScriptGeneratorModel.cpp.
References m_globalTies, and updateParameterValueInGlobalTie().
Referenced by updateParameterValue().
|
private |
Definition at line 268 of file FitScriptGeneratorModel.cpp.
References m_fitDomains, and MantidQt::MantidWidgets::IndexType< Class >::value.
Referenced by updateParameterValue().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 154 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), and m_fitDomains.
|
private |
Definition at line 394 of file FitScriptGeneratorModel.cpp.
References getParameterValue(), MantidQt::MantidWidgets::isNumber(), isParameterValueWithinConstraints(), and validParameter().
Referenced by checkGlobalTies(), tryToAdjustTieInGlobalTieIfInvalidated(), updateGlobalParameterTie(), and updateParameterValueInGlobalTie().
|
private |
Definition at line 371 of file FitScriptGeneratorModel.cpp.
References getAdjustedFunctionIndex(), m_fitDomains, numberOfDomains(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
private |
Definition at line 367 of file FitScriptGeneratorModel.cpp.
References validParameter().
Referenced by checkGlobalTies(), tryToAdjustParameterInGlobalTieIfInvalidated(), updateGlobalParameterTie(), updateLocalParameterTie(), validGlobalTie(), and validParameter().
|
private |
Definition at line 379 of file FitScriptGeneratorModel.cpp.
References MantidQt::MantidWidgets::isNumber(), m_fittingMode, MantidQt::MantidWidgets::SEQUENTIAL, MantidQt::MantidWidgets::SIMULTANEOUS, and MantidQt::MantidWidgets::splitStringBy().
Referenced by getEquivalentParameterTieForDomain(), setParameterTie(), and updateParameterTie().
|
private |
Definition at line 192 of file FitScriptGeneratorModel.h.
Referenced by addFunction(), addWorkspaceDomain(), checkFunctionExistsInAllDomains(), checkFunctionIsSameForAllDomains(), checkGlobalParameterhasNoTies(), checkParameterIsInAllDomains(), findDomainIndex(), findWorkspaceDomain(), getDomainName(), getFunction(), getMultiDomainFunction(), getParameterProperty(), hasWorkspaceDomain(), isParameterValueWithinConstraints(), removeDomain(), removeFunction(), removeParameterConstraint(), renameWorkspace(), setFunction(), setParameterConstraint(), setParameterFixed(), setParameterValue(), transformDomains(), updateAttributeValue(), updateEndX(), updateGlobalParameterTie(), updateLocalParameterTie(), updateParameterConstraint(), updateParameterValue(), updateParameterValueInGlobalTie(), updateParameterValuesWithLocalTieTo(), updateStartX(), validParameter(), and ~FitScriptGeneratorModel().
|
private |
Definition at line 197 of file FitScriptGeneratorModel.h.
Referenced by generatePermissibleWarnings(), getAdjustedFunctionIndex(), getEquivalentFunctionIndexForDomain(), getEquivalentParameterTieForDomain(), getFittingType(), getFullParameter(), getFunction(), isSimultaneousMode(), setFittingMode(), updateLocalParameterTie(), updateParameterTie(), updateParameterValue(), and validTie().
|
private |
Definition at line 194 of file FitScriptGeneratorModel.h.
Referenced by addGlobalParameterTies(), checkParameterIsNotGlobal(), setFittingMode(), setGlobalParameters(), and ~FitScriptGeneratorModel().
|
private |
Definition at line 196 of file FitScriptGeneratorModel.h.
Referenced by addGlobalTies(), checkGlobalParameterhasNoTies(), checkGlobalTies(), clearGlobalTie(), findGlobalTie(), hasGlobalTie(), setFittingMode(), updateGlobalParameterTie(), updateParameterValuesWithGlobalTieTo(), and ~FitScriptGeneratorModel().
|
private |
Definition at line 191 of file FitScriptGeneratorModel.h.
Referenced by isValid(), and setOutputBaseName().
|
private |
Definition at line 190 of file FitScriptGeneratorModel.h.
Referenced by checkGlobalTies(), clearGlobalTie(), setFittingMode(), and subscribePresenter().