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