16using namespace CurveFitting;
18using namespace Kernel;
25 declareParameter(
"A", 0.2,
"Amplitude (height at origin)");
26 declareParameter(
"Lambda", 0.2,
"Decay rate of the standard exponential");
27 declareParameter(
"Beta", 0.2,
"Stretching exponent, usually in the (0,2] range");
35 for (
size_t i = 0; i < nData; i++) {
36 out[i] = A * exp(-pow(G * xValues[i], b));
#define DECLARE_FUNCTION(classname)
Macro for declaring a new type of function to be used with the FunctionFactory.
double getParameter(size_t i) const override
Get i-th parameter.
Provide stetch exponential function for Muon scientists.
void function1D(double *out, const double *xValues, const size_t nData) const override
Function you want to fit to.