14#include "MantidAlgorithms/DllConfig.h"
17namespace HistogramData {
40 const std::string
name()
const override {
return "Regroup"; }
42 const std::string
summary()
const override {
return "Regroups data with new bin boundaries."; }
45 int version()
const override {
return 1; }
46 const std::vector<std::string>
seeAlso()
const override {
return {
"Rebin"}; }
48 const std::string
category()
const override {
return "Transforms\\Rebin"; }
50 int newAxis(
const std::vector<double> ¶ms,
const std::vector<double> &xold, std::vector<double> &xnew,
51 std::vector<int> &xoldIndex);
58 void rebin(
const HistogramData::HistogramX &xold,
const HistogramData::HistogramY &yold,
59 const HistogramData::HistogramE &eold,
const std::vector<int> &xoldIndex, HistogramData::HistogramY &ynew,
60 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(const std::vector< double > &xold, const std::vector< double > &yold, const std::vector< double > &eold, const std::vector< double > &xnew, std::vector< double > &ynew, std::vector< double > &enew, bool distribution, bool addition=false)
Rebins data according to a new output X array.
Helper class which provides the Collimation Length for SANS instruments.