Mantid
Loading...
Searching...
No Matches
SplineInterpolation.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2013 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 "MantidCurveFitting/DllConfig.h"
11
12namespace Mantid {
13namespace CurveFitting {
14namespace Algorithms {
15
29class MANTID_CURVEFITTING_DLL SplineInterpolation final : public API::Algorithm {
30public:
32
33 const std::string name() const override;
34 int version() const override;
35 const std::vector<std::string> seeAlso() const override { return {"Fit", "SplineBackground", "SplineSmoothing"}; }
36 const std::string category() const override;
37 const std::string summary() const override;
38 std::map<std::string, std::string> validateInputs() override;
39
40private:
41 void init() override;
42 void exec() override;
43
45 API::MatrixWorkspace_sptr setupOutputWorkspace(const API::MatrixWorkspace_sptr &mws,
46 const API::MatrixWorkspace_sptr &iws) const;
47
50
52 std::pair<size_t, size_t> findInterpolationRange(const API::MatrixWorkspace_const_sptr &iwspt,
53 const API::MatrixWorkspace_sptr &mwspt, const size_t row);
54};
55
56} // namespace Algorithms
57} // namespace CurveFitting
58} // namespace Mantid
std::string name
Definition Run.cpp:60
IPeaksWorkspace_sptr workspace
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.