Mantid
Loading...
Searching...
No Matches
PeakParameterFunction.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 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
12#include "MantidCurveFitting/DllConfig.h"
13
14namespace Mantid {
15namespace CurveFitting {
16namespace Functions {
17
31class MANTID_CURVEFITTING_DLL PeakParameterFunction : virtual public API::IFunction1D,
32 virtual public API::FunctionParameterDecorator {
33public:
35
36 std::string name() const override { return "PeakParameterFunction"; }
37
38 void function1D(double *out, const double *xValues, const size_t nData) const override;
39
40 void functionDeriv(const API::FunctionDomain &domain, API::Jacobian &jacobian) override;
41
42protected:
43 void beforeDecoratedFunctionSet(const API::IFunction_sptr &fn) override;
44
46};
47
48} // namespace Functions
49} // namespace CurveFitting
50} // namespace Mantid
Base class that represents the domain of a function.
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
std::string name() const override
Returns the function's name.
std::shared_ptr< IPeakFunction > IPeakFunction_sptr
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
Definition: IFunction.h:732
Helper class which provides the Collimation Length for SANS instruments.