14namespace CurveFitting {
24 std::string
name()
const override {
return "Polynomial"; }
26 const std::string
category()
const override {
return "Background; Muon\\MuonModelling"; }
28 void function1D(
double *out,
const double *xValues,
const size_t nData)
const override;
30 void functionDeriv1D(
API::Jacobian *out,
const double *xValues,
const size_t nData)
override;
37 std::vector<std::string> getAttributeNames()
const override;
40 Attribute getAttribute(
const std::string &attName)
const override;
43 void setAttribute(
const std::string &attName,
const Attribute &)
override;
46 bool hasAttribute(
const std::string &attName)
const override;
Attribute is a non-fitting parameter.
Represents the Jacobian in IFitFunction::functionDeriv.
Polynomial : N-th polynomial background function.
const std::string category() const override
overwrite IFunction base class methods
std::string name() const override
Overwrite IFunction base class.
size_t nAttributes() const override
Returns the number of attributes associated with the function (polynomial order n)
std::shared_ptr< Polynomial > Polynomial_sptr
Helper class which provides the Collimation Length for SANS instruments.