/
CriticalPeakRelaxationRate.h
53 lines (47 loc) · 1.95 KB
/
CriticalPeakRelaxationRate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2021 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
//----------------------------------------------------------------------
// Includes
//----------------------------------------------------------------------
#include "MantidCurveFitting/Functions/BackgroundFunction.h"
namespace Mantid {
namespace CurveFitting {
namespace Functions {
/**
Provide Critical peak of relaxation rate for fitting interface to IFunction.
I.e. y = Sc/(|x-Tc|)^a + Bg
Activation attributes:
<UL>
<LI> Sc - Scaling</LI>
<LI> Tc - critical temperature</LI>
<LI> a - critical exponent </LI>
<LI> Bg - non-critical background</LI>
</UL>
CriticalPeakRelaxationRate parameters:
<UL>
<LI> Scaling - coefficient for scaling (default 1.0)</LI>
<LI> CriticalTemp - coefficient for barrier energy (default 0.01)</LI>
<LI> Exponent - coefficient for critical exponent (default 1.0)</LI>
<LI> Background1 - coefficient for non-critical background when x < Critical Temperature (default 0.0)</LI>
<LI> Background2 - coefficient for non-critical background when x > Critical Temperature (default 0.0)</LI>
<LI> Delta - coefficient to determine distance from the peak to start/end fitting </LI>
</UL>
*/
class MANTID_CURVEFITTING_DLL CriticalPeakRelaxationRate : public BackgroundFunction {
public:
/// overwrite IFunction base class methods
std::string name() const override { return "CriticalPeakRelaxationRate"; }
void function1D(double *out, const double *xValues, const size_t nData) const override;
const std::string category() const override { return "Muon\\MuonModelling\\Magnetism"; }
protected:
/// overwrite IFunction base class method, which declare function parameters
void init() override;
};
} // namespace Functions
} // namespace CurveFitting
} // namespace Mantid