Mantid
Loading...
Searching...
No Matches
ThermalNeutronBk2BkExpAlpha.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
13namespace Mantid {
14namespace CurveFitting {
15namespace Functions {
16
21class MANTID_CURVEFITTING_DLL ThermalNeutronBk2BkExpAlpha : virtual public API::IFunction1D, public API::ParamFunction {
22public:
24 void function1D(double *out, const double *xValues, const size_t nData) const override;
25
27 std::string name() const override { return "ThermalNeutronBk2BkExpAlpha"; }
28
30 const std::string category() const override { return "General"; }
31
32protected:
34 void init() override;
35
36private:
38 void functionDerivLocal(API::Jacobian *, const double *, const size_t);
39
41 void functionDeriv(const API::FunctionDomain &domain, API::Jacobian &jacobian) override;
42
44 inline double corefunction(double dh, double width, double tcross, double alph0, double alph1, double alph0t,
45 double alph1t) const;
46};
47
48using ThermalNeutronBk2BkExpAlpha_sptr = std::shared_ptr<ThermalNeutronBk2BkExpAlpha>;
49
50} // namespace Functions
51} // namespace CurveFitting
52} // namespace Mantid
Base class that represents the domain of a function.
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.
ThermalNeutronBk2BkExpAlpha : Function to calculate Alpha of Bk2Bk Exponential function from Thermal ...
std::string name() const override
overwrite IFunction base class methods
void functionDerivLocal(API::Jacobian *, const double *, const size_t)
Derivative.
const std::string category() const override
Overwrite IFunction.
std::shared_ptr< ThermalNeutronBk2BkExpAlpha > ThermalNeutronBk2BkExpAlpha_sptr
Helper class which provides the Collimation Length for SANS instruments.