31 for (
size_t i = 0; i < nData; ++i) {
32 double x = xValues[i];
35 for (
size_t ip = np - 1; ip > 0; --ip) {
45 for (
size_t i = 0; i < nData; ++i) {
46 double x = xValues[i];
50 for (
size_t ip = 1; ip < np; ++ip) {
This is a specialization of IFunction for functions of one real argument.
Represents the Jacobian in IFitFunction::functionDeriv.
virtual void set(size_t iY, size_t iP, double value)=0
Set a value to a Jacobian matrix element.
Implements the part of IFunction interface dealing with parameters.
void declareParameter(const std::string &name, double initValue=0, const std::string &description="") override
Declare a new parameter.
size_t nParams() const override
Total number of parameters.
double getParameter(size_t i) const override
Get i-th parameter.
void function1D(double *out, const double *xValues, const size_t nData) const override
Function you want to fit to.
void iterationStarting() override
Called at the start of each iteration.
void functionDeriv1D(Mantid::API::Jacobian *out, const double *xValues, const size_t nData) override
Derivatives of function with respect to active parameters.
std::string name() const override
Returns the function's name.
void iterationFinished() override
Called at the end of an iteration.
Exception thrown when a fitting function changes number of parameters during fit.
Helper class which provides the Collimation Length for SANS instruments.
std::string to_string(const wide_integer< Bits, Signed > &n)