Mantid
Loading...
Searching...
No Matches
ResampleX.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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 "MantidAlgorithms/DllConfig.h"
13#include <map>
14
15namespace Mantid {
16namespace Algorithms {
17
20class MANTID_ALGORITHMS_DLL ResampleX : public Algorithms::Rebin {
21public:
22 const std::string name() const override;
23 // cppcheck-suppress uselessOverride
24 int version() const override;
25 const std::string alias() const override;
26
28 const std::string summary() const override {
29 return "Resample the x-axis of the data with the requested number of "
30 "points.";
31 }
32
34 double determineBinning(MantidVec &xValues, const double xmin, const double xmax);
36 void setOptions(const int numBins, const bool useLogBins, const bool isDist);
37
38private:
39 const std::string workspaceMethodName() const override { return ""; } // Override the one from Rebin to ignore us
40
41 void init() override;
42 void exec() override;
43
44 std::map<std::string, std::string> validateInputs() override;
45 bool m_useLogBinning = true;
46 bool m_preserveEvents = true;
47 int m_numBins = 0;
48 bool m_isDistribution = false;
49 bool m_isHistogram = true;
50};
51
52} // namespace Algorithms
53} // namespace Mantid
std::string name
Definition Run.cpp:60
Takes a workspace as input and rebins the data according to the input rebin parameters.
Definition Rebin.h:39
ResampleX : TODO: DESCRIPTION.
Definition ResampleX.h:20
const std::string summary() const override
Summary of algorithms purpose.
Definition ResampleX.h:28
const std::string workspaceMethodName() const override
Definition ResampleX.h:39
Helper class which provides the Collimation Length for SANS instruments.