13#include "MantidAlgorithms/DllConfig.h"
16namespace HistogramData {
47 const std::string
name()
const override {
return "Rebunch"; }
49 const std::string
summary()
const override {
return "Rebins data by adding together 'n_bunch' successive bins."; }
52 int version()
const override {
return 1; }
53 const std::vector<std::string>
seeAlso()
const override {
return {
"Rebin"}; }
55 const std::string
category()
const override {
return "Transforms\\Rebin"; }
61 void rebunch_hist_counts(
const HistogramData::HistogramX &xold,
const HistogramData::HistogramY &yold,
62 const HistogramData::HistogramE &eold, HistogramData::HistogramX &xnew,
63 HistogramData::HistogramY &ynew, HistogramData::HistogramE &enew,
const size_t n_bunch);
64 void rebunch_hist_frequencies(
const HistogramData::HistogramX &xold,
const HistogramData::HistogramY &yold,
65 const HistogramData::HistogramE &eold, HistogramData::HistogramX &xnew,
66 HistogramData::HistogramY &ynew, HistogramData::HistogramE &enew,
const size_t n_bunch);
67 void rebunch_point(
const HistogramData::HistogramX &xold,
const HistogramData::HistogramY &yold,
68 const HistogramData::HistogramE &eold, HistogramData::HistogramX &xnew,
69 HistogramData::HistogramY &ynew, HistogramData::HistogramE &enew,
const size_t n_bunch);
Base class from which all concrete algorithm classes should be derived.
Takes a workspace as input and rebunches the data according to the input rebunch parameters.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string name() const override
Algorithm's name 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.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Helper class which provides the Collimation Length for SANS instruments.