18using namespace CurveFitting;
20using namespace Kernel;
24using namespace CurveFitting::MuonHelper;
29 declareParameter(
"AttemptRate", 1000.0,
"coefficient for attempt rate");
30 declareParameter(
"Barrier", 1000.0,
"coefficient for barrier energy");
36 const double meVConv = 1.0;
38 for (
size_t i = 0; i < nData; i++) {
46 const double meVConv = 1.0;
48 for (
size_t i = 0; i < nData; i++) {
50 double diffBarrier =
getBarrierDiff(xValues[i], attemptRate, barrier, meVConv);
51 out->
set(i, 0, diffAR);
52 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 Kelvin interface to IFunction.
void functionDeriv1D(API::Jacobian *out, const double *xValues, const size_t nData) override
Derivatives of function with respect to active parameters.
void function1D(double *out, const double *xValues, const size_t nData) const override
Function you want to fit to.
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)