16using namespace CurveFitting;
18using namespace Kernel;
25 declareParameter(
"A", 0.2,
"Amplitude at time 0");
26 declareParameter(
"Delta", 0.2,
"Decay rate");
33 for (
size_t i = 0; i < nData; i++) {
34 out[i] = A * (exp(-pow(G * xValues[i], 2) / 2) * (1 - pow(G * xValues[i], 2)) * 2.0 / 3 + 1.0 / 3);
#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 static Kubo Toyabe fitting function.
void function1D(double *out, const double *xValues, const size_t nData) const override
Function you want to fit to.