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 "MantidKernel/Logger.h"
13#include "MantidKernel/System.h"
14#include <cmath>
15#include <complex>
16
17namespace Mantid {
18namespace CurveFitting {
19namespace Functions {
20
23class MANTID_CURVEFITTING_DLL ReflectivityMulf : public API::IFunction1D, public API::ParamFunction {
24public:
26
27 void init() override;
28
30 std::string name() const override { return "ReflectivityMulf"; }
31
32 const std::string category() const override { return "General"; }
33
34 void function1D(double *out, const double *xValues, const size_t nData) const override;
35
37 void setAttribute(const std::string &attName, const Attribute &) override;
38
39private:
41 int m_nlayer, m_nlayer_old;
42};
43
44using ReflectivityMulf_sptr = std::shared_ptr<ReflectivityMulf>;
45
46} // namespace Functions
47} // namespace CurveFitting
48} // 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:282
Implements the part of IFunction interface dealing with parameters.
Definition: ParamFunction.h:33
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.