Mantid
Loading...
Searching...
No Matches
ProductFunction.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#include "MantidCurveFitting/DllConfig.h"
14#include <cmath>
15#include <memory>
16
17namespace Mantid {
18namespace CurveFitting {
19namespace Functions {
27class MANTID_CURVEFITTING_DLL ProductFunction : public API::CompositeFunction {
28public:
30 std::string name() const override { return "ProductFunction"; }
35 void function(const API::FunctionDomain &domain, API::FunctionValues &values) const override;
37 void functionDeriv(const API::FunctionDomain &domain, API::Jacobian &jacobian) override;
38
39protected:
41 void init() override{};
42};
43
44} // namespace Functions
45} // namespace CurveFitting
46} // namespace Mantid
A composite function is a function containing other functions.
Base class that represents the domain of a function.
A class to store values calculated by a function.
Represents the Jacobian in IFitFunction::functionDeriv.
Definition: Jacobian.h:22
Allow user to create a fit function which is the product of two or more other fit functions.
void init() override
overwrite IFunction base class method, which declare function parameters
std::string name() const override
overwrite IFunction base class methods
Helper class which provides the Collimation Length for SANS instruments.