16namespace CurveFitting {
36 std::string
name()
const override {
return "Chebyshev"; }
37 const std::string
category()
const override {
return "Background"; }
38 void function1D(
double *out,
const double *xValues,
const size_t nData)
const override;
39 void functionDeriv1D(
API::Jacobian *out,
const double *xValues,
const size_t nData)
override;
42 void setAttribute(
const std::string &attName,
const Attribute &)
override;
52 mutable std::valarray<double>
m_b;
Attribute is a non-fitting parameter.
Represents the Jacobian in IFitFunction::functionDeriv.
Implements Chebyshev polynomial expansion.
double m_EndX
Upper x boundary. The default is 1.
std::string name() const override
overwrite IFunction base class methods
double m_StartX
Lower x boundary. The default is -1.
std::valarray< double > m_b
Keep intermediate calculatons.
const std::string category() const override
overwrite IFunction base class methods
std::shared_ptr< Chebyshev > Chebyshev_sptr
Helper class which provides the Collimation Length for SANS instruments.