13#include <boost/math/special_functions/bessel.hpp>
36 for (
size_t iFun = 0; iFun < this->nFunctions(); iFun++) {
37 auto fun = this->getFunction(iFun);
38 if (fun->hasAttribute(
name)) {
39 fun->setAttribute(
name, this->getAttribute(
name));
48 ImmutableCompositeFunction::declareAttribute(
name, defaultValue);
58 ImmutableCompositeFunction::setAttribute(
name, att);
66 m_elastic = std::dynamic_pointer_cast<ElasticIsoRotDiff>(
67 API::FunctionFactory::Instance().createFunction(
"ElasticIsoRotDiff"));
69 m_inelastic = std::dynamic_pointer_cast<InelasticIsoRotDiff>(
70 API::FunctionFactory::Instance().createFunction(
"InelasticIsoRotDiff"));
77 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.