18#include <boost/math/special_functions/bessel.hpp>
42 for (
size_t iFun = 0; iFun < this->nFunctions(); iFun++) {
43 auto fun = this->getFunction(iFun);
44 if (fun->hasAttribute(name)) {
45 fun->setAttribute(name, this->getAttribute(name));
54 ImmutableCompositeFunction::declareAttribute(
name, defaultValue);
64 ImmutableCompositeFunction::setAttribute(
name, att);
72 m_elastic = std::dynamic_pointer_cast<ElasticIsoRotDiff>(
75 m_inelastic = std::dynamic_pointer_cast<InelasticIsoRotDiff>(
83 this->
addDefaultTies(
"f1.Height=f0.Height,f1.Radius=f0.Radius,f1.Centre=f0.Centre");
#define DECLARE_FUNCTION(classname)
Macro for declaring a new type of function to be used with the FunctionFactory.
void applyTies() override
Apply the ties.
Attribute is a non-fitting parameter.
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 addDefaultTies(const std::string &ties)
Add default ties.
void addFunction(IFunction *fun)
Overload addFunction to take a bare pointer.
void setAttribute(const std::string &name, const API::IFunction::Attribute &att) override
Override parent definition.
std::string name() const override
overwrite IFunction base class methods
std::shared_ptr< Mantid::CurveFitting::Functions::InelasticIsoRotDiff > m_inelastic
virtual void trickleDownAttribute(const std::string &name)
Propagate an attribute to member functions.
void init() override
overwrite IFunction base class method, which declare function parameters
virtual void declareAttribute(const std::string &name, const API::IFunction::Attribute &defaultValue)
Override parent definition.
std::shared_ptr< Mantid::CurveFitting::Functions::ElasticIsoRotDiff > m_elastic
The Logger class is in charge of the publishing messages from the framework through various channels.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...