Mantid
Loading...
Searching...
No Matches
MultiDomainFunctionHelper.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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
14
15namespace Mantid {
16
17namespace FrameworkTestHelpers {
18
20public:
22
23 std::string name() const override { return "MultiDomainFunctionTest_Function"; }
24
25protected:
26 void function1D(double *out, const double *xValues, const size_t nData) const override;
27
28 void functionDeriv1D(Mantid::API::Jacobian *out, const double *xValues, const size_t nData) override;
29};
30
31std::shared_ptr<Mantid::API::MultiDomainFunction> makeMultiDomainFunction3();
32
33std::shared_ptr<Mantid::API::JointDomain> makeMultiDomainDomain3();
34
36
38
40
41} // namespace FrameworkTestHelpers
42} // namespace Mantid
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
Implements the part of IFunction interface dealing with parameters.
Definition: ParamFunction.h:33
std::string name() const override
Returns the function's name.
void functionDeriv1D(Mantid::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.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< Mantid::API::JointDomain > makeMultiDomainDomain3()
std::shared_ptr< Mantid::API::MultiDomainFunction > makeMultiDomainFunction3()
Mantid::API::MatrixWorkspace_sptr makeMultiDomainWorkspace2()
Mantid::API::MatrixWorkspace_sptr makeMultiDomainWorkspace3()
Mantid::API::MatrixWorkspace_sptr makeMultiDomainWorkspace1()
Helper class which provides the Collimation Length for SANS instruments.