37 this->declareParameter(
"Radius", 1.0,
"Circle radius [Angstroms] ");
47 auto HeightConstraint = std::make_unique<BConstraint>(
this,
"Height", std::numeric_limits<double>::epsilon(),
true);
50 auto RadiusConstraint = std::make_unique<BConstraint>(
this,
"Radius", std::numeric_limits<double>::epsilon(),
true);
62 for (
int k = 1; k < N; k++) {
63 double x = 2 * Q * R * sin(M_PI * k / N);
#define DECLARE_FUNCTION(classname)
Macro for declaring a new type of function to be used with the FunctionFactory.
Attribute is a non-fitting parameter.
int asInt() const
Returns int value if attribute is a int, throws exception otherwise.
double asDouble() const
Returns double value if attribute is a double, throws exception otherwise.
virtual Attribute getAttribute(const std::string &name) const
Return a value of attribute attName.
virtual void addConstraint(std::unique_ptr< IConstraint > ic)
Add a constraint to function.
double getParameter(size_t i) const override
Get i-th parameter.
A boundary constraint is designed to be used to set either upper or lower (or both) boundaries on a s...
void init() override
overwrite IFunction base class method, which declare function parameters
double HeightPrefactor() const override
A rescaling of the peak intensity.
virtual void declareAttributes() override
declare commonattributes Q and WorkspaceIndex.
The Logger class is in charge of the publishing messages from the framework through various channels.