10#include "MantidCurveFitting/DllConfig.h"
14namespace CurveFitting {
38 double centre()
const override {
return getParameter(
"PeakCentre"); }
39 double intensity()
const override {
return getParameter(
"Intensity"); }
41 double height()
const override;
42 double fwhm()
const override {
return getParameter(
"FWHM"); }
44 void setCentre(
const double c)
override { setParameter(
"PeakCentre", c); }
45 void setHeight(
const double h)
override;
46 void setFwhm(
const double w)
override;
47 void setIntensity(
const double newIntensity)
override { setParameter(
"Intensity", newIntensity); }
49 std::string
name()
const override {
return "PseudoVoigt"; }
50 const std::string
category()
const override {
return "Peak"; }
53 void setParameter(
size_t i,
const double &
value,
bool explicitlySet =
true)
override;
55 void setParameter(
const std::string &name,
const double &
value,
bool explicitlySet =
true)
override;
58 void functionLocal(
double *out,
const double *xValues,
const size_t nData)
const override;
60 void functionDerivLocal(
API::Jacobian *out,
const double *xValues,
const size_t nData)
override;
67 void update_set_history(
size_t set_index);
70 size_t get_parameter_to_calculate_from_set();
71 bool estimate_parameter_value();
double value
The value of the point.
An interface to a peak function, which extend the interface of IFunctionWithLocation by adding method...
Represents the Jacobian in IFitFunction::functionDeriv.
double fwhm() const override
Returns the peak FWHM.
double centre() const override
Returns the centre of the function, which may be something as simple as the centre of the fitting ran...
double intensityError() const override
Error in the integrated intensity of the peak due to uncertainties in the values of the fit parameter...
const std::string category() const override
The categories the Fit function belong to.
double intensity() const override
Returns the integral intensity of the peak.
std::string name() const override
Returns the function's name.
void setCentre(const double c) override
Sets the parameters such that centre == c.
std::vector< size_t > m_set_history_distances
historty of the order to be set
void setIntensity(const double newIntensity) override
Sets the integral intensity of the peak.
Helper class which provides the Collimation Length for SANS instruments.