Mantid
Loading...
Searching...
No Matches
Resolution.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 "MantidCurveFitting/DllConfig.h"
14
15namespace Mantid {
16namespace CurveFitting {
17namespace Functions {
27class MANTID_CURVEFITTING_DLL Resolution : public API::ParamFunction, public API::IFunction1D {
28public:
30 Resolution();
31
33 std::string name() const override { return "Resolution"; }
35 void function1D(double *out, const double *xValues, const size_t nData) const override;
37 void functionDeriv1D(API::Jacobian *out, const double *xValues, const size_t nData) override;
39 size_t nAttributes() const override;
41 std::vector<std::string> getAttributeNames() const override;
43 Attribute getAttribute(const std::string &attName) const override;
45 void setAttribute(const std::string &attName, const Attribute &) override;
47 bool hasAttribute(const std::string &attName) const override;
48 // return attribute name from ith attribute
49 std::string attributeName(size_t index) const override;
50
51private:
54};
55
56} // namespace Functions
57} // namespace CurveFitting
58} // namespace Mantid
std::map< DeltaEMode::Type, std::string > index
Definition: DeltaEMode.cpp:19
This is a specialization of IFunction for functions of one real argument.
Definition: IFunction1D.h:43
Attribute is a non-fitting parameter.
Definition: IFunction.h:282
Represents the Jacobian in IFitFunction::functionDeriv.
Definition: Jacobian.h:22
Implements the part of IFunction interface dealing with parameters.
Definition: ParamFunction.h:33
TabulatedFunction m_fun
Function that does the actual job.
Definition: Resolution.h:53
std::string name() const override
overwrite IFunction base class methods
Definition: Resolution.h:33
A function which takes its values from a file or a workspace.
Helper class which provides the Collimation Length for SANS instruments.