19using namespace CurveFitting;
21using namespace Kernel;
25using namespace CurveFitting::MuonHelper;
30 declareParameter(
"AttemptRate", 1000.0,
"coefficient for attempt rate");
31 declareParameter(
"Barrier", 1000.0,
"coefficient for barrier energy");
39 for (
size_t i = 0; i < nData; i++) {
49 for (
size_t i = 0; i < nData; i++) {
51 double diffBarrier =
getBarrierDiff(xValues[i], attemptRate, barrier, meVConv);
52 out->
set(i, 0, diffAR);
53 out->
set(i, 1, diffBarrier);
#define DECLARE_FUNCTION(classname)
Macro for declaring a new type of function to be used with the FunctionFactory.
Represents the Jacobian in IFitFunction::functionDeriv.
virtual void set(size_t iY, size_t iP, double value)=0
Set a value to a Jacobian matrix element.
double getParameter(size_t i) const override
Get i-th parameter.
Provide Activation fit function for data in meV interface to IFunction.
void function1D(double *out, const double *xValues, const size_t nData) const override
Function you want to fit to.
void functionDeriv1D(API::Jacobian *out, const double *xValues, const size_t nData) override
Derivatives of function with respect to active parameters.
double MANTID_CURVEFITTING_DLL getAttemptRateDiff(double xValue, const double barrier, const double unitMultipy)
double MANTID_CURVEFITTING_DLL getBarrierDiff(double xValue, const double attemptRate, const double barrier, const double unitMultipy)
double MANTID_CURVEFITTING_DLL getActivationFunc(double xValue, const double attemptRate, const double barrier, const double unitMultipy)
static constexpr double meVtoKelvin
1 meV in Kelvin.