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;
32 void function(const API::FunctionDomain &domain, API::FunctionValues &values) const override;
34 void functionDeriv(const API::FunctionDomain &domain, API::Jacobian &jacobian) override;
35
36protected:
38 void init() override;
39};
40
41} // namespace Functions
42} // namespace CurveFitting
43} // namespace Mantid
std::string name
Definition Run.cpp:60
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.
Helper class which provides the Collimation Length for SANS instruments.