13#include "MantidCurveFitting/DllConfig.h"
16namespace CurveFitting {
44 double centre()
const override {
return getParameter(
"X0"); }
45 void setCentre(
const double c)
override { setParameter(
"X0", c); }
46 double height()
const override;
47 void setHeight(
const double h)
override;
48 double fwhm()
const override;
49 void setFwhm(
const double w)
override;
50 double intensity()
const override {
return getParameter(
"I"); }
52 void setIntensity(
const double newIntensity)
override { setParameter(
"I", newIntensity); }
56 std::string
name()
const override {
return "BackToBackExponential"; }
57 const std::string
category()
const override {
return "Peak"; }
58 void function1D(
double *out,
const double *xValues,
const size_t nData)
const override;
59 void functionDeriv1D(
API::Jacobian *jacobian,
const double *xValues,
const size_t nData)
override;
65 void functionLocal(
double *,
const double *,
const size_t)
const override {}
68 double expWidth()
const;
An interface to a peak function, which extend the interface of IFunctionWithLocation by adding method...
Represents the Jacobian in IFitFunction::functionDeriv.
Provide BackToBackExponential peak shape function interface to IPeakFunction.
void functionDerivLocal(API::Jacobian *, const double *, const size_t) override
Derivative evaluation method to be implemented in the inherited classes.
void functionLocal(double *, const double *, const size_t) const override
Function evaluation method to be implemented in the inherited classes.
double intensity() const override
Returns the integral intensity of the peak.
std::string name() const override
overwrite IFunction base class methods
double centre() const override
overwrite IPeakFunction base class methods
double intensityError() const override
Error in the integrated intensity of the peak due to uncertainties in the values of the fit parameter...
std::string getWidthParameterName() const override
Get the name of the parameter that is changed when the fwhm is changed.
const std::string category() const override
The categories the Fit function belong to.
BackToBackExponential()
Default constructor.
void setCentre(const double c) override
Sets the parameters such that centre == c.
void setIntensity(const double newIntensity) override
Sets the integral intensity of the peak.
std::shared_ptr< BackToBackExponential > BackToBackExponential_sptr
Helper class which provides the Collimation Length for SANS instruments.