14#include "MantidAlgorithms/DllConfig.h"
19namespace HistogramData {
42 const std::string
name()
const override {
return "Regroup"; }
44 const std::string
summary()
const override {
return "Regroups data with new bin boundaries."; }
47 int version()
const override {
return 1; }
48 const std::vector<std::string>
seeAlso()
const override {
return {
"Rebin"}; }
50 const std::string
category()
const override {
return "Transforms\\Rebin"; }
52 int newAxis(
const std::vector<double> ¶ms, std::span<double const> xold, std::vector<double> &xnew,
53 std::vector<int> &xoldIndex);
60 void rebin(
const HistogramData::HistogramX &xold,
const HistogramData::HistogramY &yold,
61 const HistogramData::HistogramE &eold,
const std::vector<int> &xoldIndex, HistogramData::HistogramY &ynew,
62 HistogramData::HistogramE &enew,
bool distribution);
Base class from which all concrete algorithm classes should be derived.
Takes a 2D workspace as input and regroups the data according to the input regroup parameters.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
void MANTID_KERNEL_DLL rebin(std::span< double const > xold, std::span< double const > yold, std::span< double const > eold, std::span< double const > xnew, std::span< double > ynew, std::span< double > enew, bool distribution, bool addition=false)
The input and output ranges are taken as spans so that the size-checked histogram data types,...
Helper class which provides the Collimation Length for SANS instruments.