13#include "MantidCurveFitting/DllConfig.h"
18namespace CurveFitting {
33 double centre()
const override {
return getParameter(
"Centre"); }
34 double height()
const override {
return getParameter(
"Height"); }
35 double fwhm()
const override {
return 0; }
36 void setCentre(
const double c)
override { setParameter(
"Centre", c); }
37 void setHeight(
const double h)
override { setParameter(
"Height", h); }
41 std::string
name()
const override {
return "DeltaFunction"; }
42 const std::string
category()
const override {
return "Peak"; }
45 void function1D(
double *out,
const double *xValues,
const size_t nData)
const override;
46 void functionDeriv1D(
API::Jacobian *out,
const double *xValues,
const size_t nData)
override;
47 void functionLocal(
double *out,
const double *xValues,
const size_t nData)
const override {
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
An interface to a peak function, which extend the interface of IFunctionWithLocation by adding method...
Represents the Jacobian in IFitFunction::functionDeriv.
void functionLocal(double *out, const double *xValues, const size_t nData) const override
Function evaluation method to be implemented in the inherited classes.
void functionDerivLocal(API::Jacobian *out, const double *xValues, const size_t nData) override
Derivative evaluation method. Default is to calculate numerically.
double height() const override
Returns the height of the function.
const std::string category() const override
The categories the Fit function belong to.
virtual double HeightPrefactor() const
void setHeight(const double h) override
Sets the parameters such that height == h.
double fwhm() const override
Returns the peak FWHM.
std::string name() const override
overwrite IFunction base class methods
void setFwhm(const double w) override
Sets the parameters such that FWHM = w.
double centre() const override
overwrite IPeakFunction base class methods
void setCentre(const double c) override
Sets the parameters such that centre == c.
Helper class which provides the Collimation Length for SANS instruments.