12#include "MantidCurveFitting/DllConfig.h"
15namespace CurveFitting {
33 std::string name()
const override;
38 void function1D(
double *out,
const double *xValues,
const size_t nData)
const override;
40 void setUpForFit()
override;
42 void setWorkspace(std::shared_ptr<const API::Workspace> ws)
override;
45 void declareParameters()
override;
46 void declareAttributes()
override;
47 void setAttribute(
const std::string &name,
const Attribute &
value)
override;
57 std::shared_ptr<API::IPeakFunction>
m_gauss;
59 std::shared_ptr<API::IPeakFunction>
m_voigt;
double value
The value of the point.
This is a specialization of IFunction for functions of one real argument.
Attribute is a non-fitting parameter.
Implements the part of IFunction interface dealing with parameters.
This implements a resolution function for fitting a single mass in a compton scattering spectrum.
std::shared_ptr< API::IPeakFunction > m_gauss
Gaussian function for lower-energy peaks.
std::shared_ptr< API::IPeakFunction > m_voigt
Voigt function for higher-energy peaks.
double m_mass
Mass of peak.
double m_efixed
Final energy of analyser.
double m_hwhmLorentz
Calculated value of lorentz width.
double m_voigtCutOff
Below this value a Voigt is used for profile approximation.
size_t m_wsIndex
WorkspaceIndex attribute.
Helper class which provides the Collimation Length for SANS instruments.