14#include "MantidAlgorithms/DllConfig.h"
16#include <boost/function.hpp>
40 const std::string
name()
const override {
return "ScaleX"; }
42 const std::string
summary()
const override {
43 return "Scales the X-axis of an input workspace by the given factor, which "
44 "can be either multiplicative or additive.";
48 int version()
const override {
return 1; }
49 const std::vector<std::string>
seeAlso()
const override {
return {
"ChangeBinOffset",
"Scale"}; }
51 const std::string
category()
const override {
return "Arithmetic;CorrectionFunctions"; }
75 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.
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.