16namespace CurveFitting {
30 const std::string name()
const override;
31 int version()
const override;
32 const std::vector<std::string>
seeAlso()
const override {
return {
"Fit",
"SplineInterpolation",
"SplineBackground"}; }
33 const std::string category()
const override;
35 const std::string
summary()
const override {
36 return "Smooths a set of spectra using a cubic spline. Optionally, this "
37 "algorithm can also calculate derivatives up to order 2 as a side "
50 void smoothSpectrum(
const int index);
53 void calculateSpectrumDerivatives(
const int index,
const int order);
60 void convertToHistogram();
67 const size_t row)
const;
71 const int order,
const size_t row)
const;
74 void addSmoothingPoints(
const std::set<int> &points,
const double *xs,
const double *ys)
const;
78 bool checkSmoothingAccuracy(
const int start,
const int end,
const double *ys,
const double *ysmooth)
const;
IPeaksWorkspace_sptr workspace
std::map< DeltaEMode::Type, std::string > index
Base class from which all concrete algorithm classes should be derived.
Base MatrixWorkspace Abstract Class.
Takes a 2D workspace and produces an output workspace containing a smoothed version of the data by se...
std::shared_ptr< Functions::BSpline > m_cspline
CubicSpline member used to perform smoothing.
API::MatrixWorkspace_sptr m_inputWorkspace
pointer to the input workspace
const int M_START_SMOOTH_POINTS
number of smoothing points to start with
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
const std::string summary() const override
Summary of algorithms purpose.
API::MatrixWorkspace_sptr m_outputWorkspace
pointer to the smoothed output workspace
API::MatrixWorkspace_sptr m_inputWorkspacePointData
pointer to the input workspace converted to point data
API::WorkspaceGroup_sptr m_derivativeWorkspaceGroup
pointer to the output workspace group of derivatives
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.