Mantid
Loading...
Searching...
No Matches
IFunction1DSpectrum.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 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#include "MantidAPI/DllConfig.h"
10
12#include "MantidAPI/IFunction.h"
13#include "MantidKernel/Logger.h"
14
15namespace Mantid {
16namespace API {
17
26class MANTID_API_DLL IFunction1DSpectrum : public virtual IFunction {
27public:
28 void function(const FunctionDomain &domain, FunctionValues &values) const override;
29 void functionDeriv(const FunctionDomain &domain, Jacobian &jacobian) override;
30
33 virtual void function1DSpectrum(const FunctionDomain1DSpectrum &domain, FunctionValues &values) const = 0;
34
37 virtual void functionDeriv1DSpectrum(const FunctionDomain1DSpectrum &domain, Jacobian &jacobian);
38
39protected:
41};
42
43} // namespace API
44} // namespace Mantid
Specialization of FunctionDomain1DVector for spectra of MatrixWorkspaces.
Base class that represents the domain of a function.
A class to store values calculated by a function.
virtual void function1DSpectrum(const FunctionDomain1DSpectrum &domain, FunctionValues &values) const =0
Provide a concrete function in an implementation that operates on a FunctionDomain1DSpectrum.
This is an interface to a fitting function - a semi-abstarct class.
Definition: IFunction.h:163
Represents the Jacobian in IFitFunction::functionDeriv.
Definition: Jacobian.h:22
The Logger class is in charge of the publishing messages from the framework through various channels.
Definition: Logger.h:52
Helper class which provides the Collimation Length for SANS instruments.