9#include <boost/python/class.hpp>
10#include <boost/python/register_ptr_to_python.hpp>
19 register_ptr_to_python<std::shared_ptr<IPeakFunction>>();
21 class_<IPeakFunction, bases<IFunction1D>, std::shared_ptr<IPeakFunctionAdapter>, boost::noncopyable>(
22 "IPeakFunction",
"Base class for peak Fit functions")
25 (arg(
"self"), arg(
"vec_x")),
26 "Calculate the values of the function for the given x values. The "
27 "output should be stored in the out array")
31 "Returns the integral intensity error of the peak function due to uncertainties in uncorrelated fit "
34 "Changes the integral intensity of the peak function by setting its "
void export_IPeakFunction()
This is a specialization of IFunction for functions of one real argument.
An interface to a peak function, which extend the interface of IFunctionWithLocation by adding method...
virtual void setIntensity(const double newIntensity)
Sets the integral intensity of the peak.
virtual double fwhm() const =0
Returns the peak FWHM.
virtual double intensity() const
Returns the integral intensity of the peak.
virtual double intensityError() const
Error in the integrated intensity of the peak due to uncertainties in the values of the fit parameter...
Provides a layer class for boost::python to allow C++ virtual functions to be overridden in a Python ...
void functionLocal(double *out, const double *xValues, const size_t nData) const override
Implemented Base-class method.