11#include "MantidAlgorithms/DllConfig.h"
33 const std::string
name()
const override {
return "RebinToWorkspace"; }
35 const std::string
summary()
const override {
36 return "Rebin a selected workspace to the same binning as a different "
41 int version()
const override {
return (1); }
44 const std::string
category()
const override {
return "Transforms\\Rebin"; }
46 const std::vector<std::string>
seeAlso()
const override {
return {
"Rebin"}; }
49 Parallel::ExecutionMode
50 getParallelExecutionMode(
const std::map<std::string, Parallel::StorageMode> &storageModes)
const override;
53 bool m_preserveEvents{
true};
54 bool m_isEvents{
true};
Base class from which all concrete algorithm classes should be derived.
Rebins a workspace so that the binning, for all its spectra, match that of the first spectrum of a se...
const std::vector< std::string > seeAlso() const override
Algorithm's seeAlso.
const std::string category() const override
Algorithm's category for identification.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name.
int version() const override
Algorithm's version.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
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.