Mantid
Loading...
Searching...
No Matches
Quadratic.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 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
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
13
14namespace Mantid {
15namespace CurveFitting {
16namespace Functions {
31class MANTID_CURVEFITTING_DLL Quadratic : public BackgroundFunction {
32public:
34 std::string name() const override { return "Quadratic"; }
35 void function1D(double *out, const double *xValues, const size_t nData) const override;
36 void functionDeriv1D(API::Jacobian *out, const double *xValues, const size_t nData) override;
37
38protected:
40 void init() override;
41};
42
43} // namespace Functions
44} // namespace CurveFitting
45} // namespace Mantid
Represents the Jacobian in IFitFunction::functionDeriv.
Definition: Jacobian.h:22
Provide quadratic function interface to IFunction.
Definition: Quadratic.h:31
void functionDeriv1D(API::Jacobian *out, const double *xValues, const size_t nData) override
Derivatives of function with respect to active parameters.
void function1D(double *out, const double *xValues, const size_t nData) const override
Function you want to fit to.
void init() override
overwrite IFunction base class method, which declare function parameters
std::string name() const override
overwrite IFunction base class methods
Definition: Quadratic.h:34
Helper class which provides the Collimation Length for SANS instruments.