Mantid
Loading...
Searching...
No Matches
FFTSmooth2.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2008 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
11#include "MantidAlgorithms/DllConfig.h"
12
13namespace Mantid {
14namespace Algorithms {
20class MANTID_ALGORITHMS_DLL FFTSmooth2 : public API::ParallelAlgorithm {
21public:
23 const std::string name() const override { return "FFTSmooth"; }
25 const std::string summary() const override { return "Performs smoothing of a spectrum using various filters."; }
26
28 int version() const override { return 2; }
29 const std::vector<std::string> seeAlso() const override { return {"FFT", "WienerSmooth"}; }
31 const std::string category() const override { return "Arithmetic\\FFT;Transforms\\Smoothing"; }
32
33private:
34 // Overridden Algorithm methods
35 void init() override;
36 void exec() override;
37
38 // Smoothing by zeroing.
39 void zero(int n, API::MatrixWorkspace_sptr &unfilteredWS, API::MatrixWorkspace_sptr &filteredWS);
40 // Smoothing using Butterworth filter of any positive order.
41 void Butterworth(int n, int order, API::MatrixWorkspace_sptr &unfilteredWS, API::MatrixWorkspace_sptr &filteredWS);
42};
43
44} // namespace Algorithms
45} // namespace Mantid
Base class for algorithms that can run in parallel on all MPI ranks but not in a distributed fashion.
Data smoothing using the FFT algorithm and various filters.
Definition: FFTSmooth2.h:20
const std::string summary() const override
Summary of algorithms purpose.
Definition: FFTSmooth2.h:25
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Definition: FFTSmooth2.h:31
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: FFTSmooth2.h:29
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Definition: FFTSmooth2.h:23
int version() const override
Algorithm's version for identification overriding a virtual method.
Definition: FFTSmooth2.h:28
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.