Mantid
Loading...
Searching...
No Matches
WienerSmooth.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
10#include "MantidAPI/IFunction.h"
11#include "MantidAlgorithms/DllConfig.h"
12#include "MantidHistogramData/HistogramX.h"
14
15namespace Mantid {
16namespace Algorithms {
17
22class MANTID_ALGORITHMS_DLL WienerSmooth final : public API::Algorithm {
23public:
24 const std::string name() const override { return "WienerSmooth"; }
25 int version() const override;
26 const std::vector<std::string> seeAlso() const override { return {"FFTSmooth"}; }
27 const std::string category() const override;
28 const std::string summary() const override;
29
30private:
31 void init() override;
32 void exec() override;
33
34 std::pair<double, double> getStartEnd(const Mantid::HistogramData::HistogramX &X, bool isHistogram) const;
35 API::MatrixWorkspace_sptr copyInput(const API::MatrixWorkspace_sptr &inputWS, size_t wsIndex);
36 API::MatrixWorkspace_sptr smoothSingleSpectrum(API::MatrixWorkspace_sptr inputWS, size_t wsIndex);
37 void setSplineDataBounds(API::IFunction_sptr &spline, const double startX, const double endX);
38};
39
40} // namespace Algorithms
41} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
WienerSmooth algorithm performes smoothing data in a spectrum of a matrix workspace using the Wiener ...
Definition: WienerSmooth.h:22
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: WienerSmooth.h:26
const std::string name() const override
function to return a name of the algorithm, must be overridden in all algorithms
Definition: WienerSmooth.h:24
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
Definition: IFunction.h:732
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.