20#include <boost/math/special_functions/bessel.hpp>
40 for (
size_t iFun = 0; iFun < this->nFunctions(); iFun++) {
42 if (fun->hasAttribute(name)) {
43 fun->setAttribute(name, this->getAttribute(name));
70 m_elastic = std::dynamic_pointer_cast<ElasticDiffSphere>(
73 m_inelastic = std::dynamic_pointer_cast<InelasticDiffSphere>(
81 this->
addDefaultTies(
"f0.Height=f1.Intensity,f0.Radius=f1.Radius,f0.Centre=0");
#define DECLARE_FUNCTION(classname)
Macro for declaring a new type of function to be used with the FunctionFactory.
void declareAttribute(const std::string &name, const API::IFunction::Attribute &defaultValue)
Declare a single attribute.
void setAttribute(const std::string &name, const API::IFunction::Attribute &value) override
Set a value of a named attribute.
void applyTies() override
Apply the ties.
Attribute is a non-fitting parameter.
void setAttributeValue(const std::string &attName, const T &value)
Set an attribute value.
void addDefaultTies(const std::string &ties)
Add default ties.
void addFunction(IFunction *fun)
Overload addFunction to take a bare pointer.
std::shared_ptr< Mantid::CurveFitting::Functions::ElasticDiffSphere > m_elastic
virtual void trickleDownAttribute(const std::string &name)
Propagate an attribute to member functions.
std::string name() const override
overwrite IFunction base class methods
virtual void declareAttribute(const std::string &name, const API::IFunction::Attribute &defaultValue)
Override parent definition.
void init() override
overwrite IFunction base class method, which declare function parameters
std::shared_ptr< Mantid::CurveFitting::Functions::InelasticDiffSphere > m_inelastic
void setAttribute(const std::string &name, const API::IFunction::Attribute &att) override
Override parent definition.
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...
Kernel::Logger g_log("ExperimentInfo")
static logger object
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class