15#include "MantidAlgorithms/DllConfig.h"
17#include <boost/function.hpp>
41 const std::string
name()
const override {
return "ScaleX"; }
43 const std::string
summary()
const override {
44 return "Scales the X-axis of an input workspace by the given factor, which "
45 "can be either multiplicative or additive.";
49 int version()
const override {
return 1; }
50 const std::vector<std::string>
seeAlso()
const override {
return {
"ChangeBinOffset",
"Scale"}; }
52 const std::string
category()
const override {
return "Arithmetic;CorrectionFunctions"; }
77 boost::function<double(
double,
double)>
m_binOp;
std::map< DeltaEMode::Type, std::string > index
Base class from which all concrete algorithm classes should be derived.
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
Takes a workspace and adjusts all the time bin values by the same multiplicative factor.
boost::function< double(double, double)> m_binOp
Function defining request operation.
double m_algFactor
Scaling factor.
int m_wi_min
Start workspace index.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
int m_wi_max
Stop workspace index.
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::string summary() const override
Summary of algorithms purpose.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
std::string m_parname
instrument parameter name
bool m_combine
Flag whether we are combining input parameters.
std::unique_ptr< API::Progress > m_progress
The progress reporting object.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.