16namespace CurveFitting {
36 std::string
name()
const override {
return "Chebyshev"; }
37 void function1D(
double *out,
const double *xValues,
const size_t nData)
const override;
38 void functionDeriv1D(
API::Jacobian *out,
const double *xValues,
const size_t nData)
override;
41 void setAttribute(
const std::string &attName,
const Attribute &)
override;
51 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.
std::shared_ptr< Chebyshev > Chebyshev_sptr
Helper class which provides the Collimation Length for SANS instruments.