13#include "MantidCurveFitting/DllConfig.h"
16namespace CurveFitting {
36 double centre()
const override {
return getParameter(
"PeakCentre"); }
37 double height()
const override;
38 double fwhm()
const override {
return getParameter(
"FWHM"); }
39 double intensity()
const override {
return getParameter(
"Amplitude"); }
41 void setCentre(
const double c)
override { setParameter(
"PeakCentre", c); }
42 void setHeight(
const double h)
override;
43 void setFwhm(
const double w)
override;
44 void setIntensity(
const double i)
override { setParameter(
"Amplitude", i); }
45 void fixCentre(
bool isDefault =
false)
override;
46 void unfixCentre()
override;
47 void fixIntensity(
bool isDefault =
false)
override;
48 void unfixIntensity()
override;
51 std::string
name()
const override {
return "Lorentzian"; }
52 const std::string
category()
const override {
return "Peak; Muon\\MuonModelling"; }
55 void functionLocal(
double *out,
const double *xValues,
const size_t nData)
const override;
56 void functionDerivLocal(
API::Jacobian *out,
const double *xValues,
const size_t nData)
override;
60 void histogram1D(
double *out,
double left,
const double *
right,
const size_t nBins)
const override;
63 const size_t nBins)
const override;
An interface to a peak function, which extend the interface of IFunctionWithLocation by adding method...
Represents the Jacobian in IFitFunction::functionDeriv.
Provide lorentzian peak shape function interface to IPeakFunction.
double centre() const override
overwrite IPeakFunction base class methods
double intensity() const override
Returns the integral intensity of the peak.
double intensityError() const override
Error in the integrated intensity of the peak due to uncertainties in the values of the fit parameter...
void setCentre(const double c) override
Sets the parameters such that centre == c.
std::string name() const override
overwrite IFunction base class methods
const std::string category() const override
The categories the Fit function belong to.
double fwhm() const override
Returns the peak FWHM.
bool m_amplitudeEqualHeight
When Amplitude is set via setHeight() and fwhm() == 0 height is made equal to Amplitude.
void setIntensity(const double i) override
Sets the integral intensity of the peak.
Helper class which provides the Collimation Length for SANS instruments.