|
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 | ~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 89 of file FitScriptGeneratorModel.cpp.
|
delete |
| MantidQt::MantidWidgets::FitScriptGeneratorModel::~FitScriptGeneratorModel | ( | ) |
Definition at line 93 of file FitScriptGeneratorModel.cpp.
References m_fitDomains, m_globalParameters, and m_globalTies.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 170 of file FitScriptGeneratorModel.cpp.
References checkGlobalTies(), findDomainIndex(), and m_fitDomains.
|
private |
Definition at line 736 of file FitScriptGeneratorModel.cpp.
References constructGlobalParameterTie(), and m_globalParameters.
Referenced by getMultiDomainFunction().
|
private |
Definition at line 748 of file FitScriptGeneratorModel.cpp.
References m_globalTies.
Referenced by getMultiDomainFunction().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 112 of file FitScriptGeneratorModel.cpp.
References hasWorkspaceDomain(), m_fitDomains, std::to_string(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
private |
Definition at line 603 of file FitScriptGeneratorModel.cpp.
References m_fitDomains.
Referenced by isValid().
|
private |
Definition at line 608 of file FitScriptGeneratorModel.cpp.
References m_fitDomains, and numberOfDomains().
Referenced by generatePermissibleWarnings().
|
private |
Definition at line 577 of file FitScriptGeneratorModel.cpp.
References m_fitDomains, and m_globalTies.
Referenced by setGlobalParameters().
|
private |
Definition at line 418 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 568 of file FitScriptGeneratorModel.cpp.
References m_fitDomains.
Referenced by setGlobalParameters().
|
private |
Definition at line 592 of file FitScriptGeneratorModel.cpp.
References getAdjustedFunctionIndex(), and m_globalParameters.
Referenced by updateParameterTie().
|
private |
Definition at line 410 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 741 of file FitScriptGeneratorModel.cpp.
References MantidQt::MantidWidgets::GlobalParameter::m_parameter, numberOfDomains(), and std::to_string().
Referenced by addGlobalParameterTies().
|
private |
Definition at line 133 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 464 of file FitScriptGeneratorModel.cpp.
References m_globalTies.
Referenced by clearGlobalTie(), and hasGlobalTie().
|
private |
Definition at line 144 of file FitScriptGeneratorModel.cpp.
References m_fitDomains.
Referenced by findDomainIndex(), and hasWorkspaceDomain().
|
private |
Definition at line 637 of file FitScriptGeneratorModel.cpp.
References checkFunctionIsSameForAllDomains(), m_fittingMode, and MantidQt::MantidWidgets::SEQUENTIAL.
Referenced by isValid().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 646 of file FitScriptGeneratorModel.cpp.
References getEndXs(), getFittingType(), getFunction(), getInputWorkspaces(), getStartXs(), and getWorkspaceIndices().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 231 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 497 of file FitScriptGeneratorModel.cpp.
References m_fitDomains, numberOfDomains(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
private |
Definition at line 688 of file FitScriptGeneratorModel.cpp.
Referenced by generatePythonFitScript().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 197 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 190 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), and getEquivalentFunctionIndexForDomain().
Referenced by getEquivalentFunctionIndexForDomain().
|
private |
Definition at line 221 of file FitScriptGeneratorModel.cpp.
References MantidQt::MantidWidgets::getFunctionIndexAt(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 207 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 701 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 240 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 246 of file FitScriptGeneratorModel.cpp.
References getFullParameter(), and MantidQt::MantidWidgets::isNumber().
Referenced by setParameterTie().
|
private |
Definition at line 712 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 184 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 673 of file FitScriptGeneratorModel.cpp.
Referenced by generatePythonFitScript().
|
private |
Definition at line 723 of file FitScriptGeneratorModel.cpp.
References addGlobalParameterTies(), addGlobalTies(), m_fitDomains, and numberOfDomains().
Referenced by getFunction().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 563 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 558 of file FitScriptGeneratorModel.cpp.
References getParameterProperty(), and MantidQt::MantidWidgets::FitDomain::getParameterTie().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 550 of file FitScriptGeneratorModel.cpp.
References getParameterProperty(), and MantidQt::MantidWidgets::FitDomain::getParameterValue().
Referenced by updateGlobalParameterTie(), and validGlobalTie().
|
private |
Definition at line 683 of file FitScriptGeneratorModel.cpp.
Referenced by generatePythonFitScript().
|
private |
Definition at line 678 of file FitScriptGeneratorModel.cpp.
Referenced by generatePythonFitScript().
|
private |
Definition at line 460 of file FitScriptGeneratorModel.cpp.
References findGlobalTie(), and m_globalTies.
Referenced by updateParameterValue().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 504 of file FitScriptGeneratorModel.cpp.
References getParameterProperty(), and MantidQt::MantidWidgets::FitDomain::hasParameter().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 121 of file FitScriptGeneratorModel.cpp.
References findWorkspaceDomain(), and m_fitDomains.
Referenced by addWorkspaceDomain().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 554 of file FitScriptGeneratorModel.cpp.
References getParameterProperty(), and MantidQt::MantidWidgets::FitDomain::isParameterFixed().
|
private |
Definition at line 401 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 495 of file FitScriptGeneratorModel.cpp.
References m_fittingMode, and MantidQt::MantidWidgets::SIMULTANEOUS.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 620 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 101 of file FitScriptGeneratorModel.cpp.
References checkGlobalTies(), m_fitDomains, and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 163 of file FitScriptGeneratorModel.cpp.
References checkGlobalTies(), findDomainIndex(), and m_fitDomains.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 350 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), getAdjustedFunctionIndex(), and m_fitDomains.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 126 of file FitScriptGeneratorModel.cpp.
References m_fitDomains.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 484 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 177 of file FitScriptGeneratorModel.cpp.
References checkGlobalTies(), findDomainIndex(), and m_fitDomains.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 469 of file FitScriptGeneratorModel.cpp.
References checkGlobalParameterhasNoTies(), checkParameterIsInAllDomains(), and m_globalParameters.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 480 of file FitScriptGeneratorModel.cpp.
References m_outputBaseName.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 536 of file FitScriptGeneratorModel.cpp.
References getAdjustedFunctionIndex(), m_fitDomains, numberOfDomains(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 517 of file FitScriptGeneratorModel.cpp.
References getAdjustedFunctionIndex(), m_fitDomains, numberOfDomains(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 526 of file FitScriptGeneratorModel.cpp.
References getFullTie(), numberOfDomains(), updateParameterTie(), validTie(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 508 of file FitScriptGeneratorModel.cpp.
References getAdjustedFunctionIndex(), m_fitDomains, numberOfDomains(), value, and MantidQt::MantidWidgets::IndexType< Class >::value.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 99 of file FitScriptGeneratorModel.cpp.
References m_presenter.
Referenced by MockFitScriptGeneratorPresenter::MockFitScriptGeneratorPresenter().
|
private |
Definition at line 694 of file FitScriptGeneratorModel.cpp.
References m_fitDomains, and numberOfDomains().
|
private |
Definition at line 434 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 447 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 291 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), getAdjustedFunctionIndex(), and m_fitDomains.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 158 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), and m_fitDomains.
|
private |
Definition at line 331 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 318 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 356 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), getAdjustedFunctionIndex(), and m_fitDomains.
|
private |
Definition at line 308 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 298 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 252 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), getAdjustedFunctionIndex(), hasGlobalTie(), m_fitDomains, m_fittingMode, MantidQt::MantidWidgets::SIMULTANEOUS, updateParameterValuesWithGlobalTieTo(), and updateParameterValuesWithLocalTieTo().
|
private |
Definition at line 282 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 273 of file FitScriptGeneratorModel.cpp.
References m_globalTies, and updateParameterValueInGlobalTie().
Referenced by updateParameterValue().
|
private |
Definition at line 266 of file FitScriptGeneratorModel.cpp.
References m_fitDomains, and MantidQt::MantidWidgets::IndexType< Class >::value.
Referenced by updateParameterValue().
|
overridevirtual |
Implements MantidQt::MantidWidgets::IFitScriptGeneratorModel.
Definition at line 152 of file FitScriptGeneratorModel.cpp.
References findDomainIndex(), and m_fitDomains.
|
private |
Definition at line 392 of file FitScriptGeneratorModel.cpp.
References getParameterValue(), MantidQt::MantidWidgets::isNumber(), isParameterValueWithinConstraints(), and validParameter().
Referenced by checkGlobalTies(), tryToAdjustTieInGlobalTieIfInvalidated(), updateGlobalParameterTie(), and updateParameterValueInGlobalTie().
|
private |
Definition at line 369 of file FitScriptGeneratorModel.cpp.
References getAdjustedFunctionIndex(), m_fitDomains, numberOfDomains(), and MantidQt::MantidWidgets::IndexType< Class >::value.
|
private |
Definition at line 365 of file FitScriptGeneratorModel.cpp.
References validParameter().
Referenced by checkGlobalTies(), tryToAdjustParameterInGlobalTieIfInvalidated(), updateGlobalParameterTie(), updateLocalParameterTie(), validGlobalTie(), and validParameter().
|
private |
Definition at line 377 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(), 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().