Mantid
Loading...
Searching...
No Matches
ReflectivityMulf.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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
11#include "MantidCurveFitting/DllConfig.h"
12#include <cmath>
13#include <complex>
14
15namespace Mantid {
16namespace CurveFitting {
17namespace Functions {
18
21class MANTID_CURVEFITTING_DLL ReflectivityMulf : public API::IFunction1D, public API::ParamFunction {
22public:
24
25 void init() override;
26
28 std::string name() const override { return "ReflectivityMulf"; }
29
30 const std::string category() const override { return "General"; }
31
32 void function1D(double *out, const double *xValues, const size_t nData) const override;
33
35 void setAttribute(const std::string &attName, const Attribute &) override;
36
37private:
39 int m_nlayer, m_nlayer_old;
40};
41
42using ReflectivityMulf_sptr = std::shared_ptr<ReflectivityMulf>;
43
44} // namespace Functions
45} // namespace CurveFitting
46} // namespace Mantid
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:285
Implements the part of IFunction interface dealing with parameters.
ReflectivityMulf : Calculate the ReflectivityMulf from a simple layer model.
std::string name() const override
Overwrite IFunction base class.
const std::string category() const override
The categories the Fit function belong to.
std::shared_ptr< ReflectivityMulf > ReflectivityMulf_sptr
Helper class which provides the Collimation Length for SANS instruments.