Mantid
Loading...
Searching...
No Matches
FunctionCreationHelper.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
11
12namespace Mantid {
13
14namespace FrameworkTestHelpers {
15
17public:
19 std::string name() const override;
20 void iterationStarting() override;
21 void iterationFinished() override;
22
23protected:
24 void function1D(double *out, const double *xValues, const size_t nData) const override;
25 void functionDeriv1D(Mantid::API::Jacobian *out, const double *xValues, const size_t nData) override;
26 size_t m_maxNParams = 5;
27 bool m_canChange = false;
28};
29
30} // namespace FrameworkTestHelpers
31} // namespace Mantid
This is a specialization of IFunction for functions of one real argument.
Definition: IFunction1D.h:43
Represents the Jacobian in IFitFunction::functionDeriv.
Definition: Jacobian.h:22
Implements the part of IFunction interface dealing with parameters.
Definition: ParamFunction.h:33
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.
Helper class which provides the Collimation Length for SANS instruments.