Mantid
Loading...
Searching...
No Matches
PowerLaw.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2021 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
13
14namespace Mantid {
15namespace CurveFitting {
16namespace Functions {
28class MANTID_CURVEFITTING_DLL PowerLaw : public BackgroundFunction {
29public:
31 std::string name() const override { return "PowerLaw"; }
32 void function1D(double *out, const double *xValues, const size_t nData) const override;
33 void functionDeriv1D(API::Jacobian *out, const double *xValues, const size_t nData) override;
34 const std::string category() const override { return "General; Muon\\MuonModelling"; }
35
36protected:
38 void init() override;
39};
40
41} // namespace Functions
42} // namespace CurveFitting
43} // namespace Mantid
Represents the Jacobian in IFitFunction::functionDeriv.
Definition: Jacobian.h:22
Provide Power Law function interface to IFunction.
Definition: PowerLaw.h:28
const std::string category() const override
overwrite IFunction base class methods
Definition: PowerLaw.h:34
std::string name() const override
overwrite IFunction base class methods
Definition: PowerLaw.h:31
Helper class which provides the Collimation Length for SANS instruments.