37 const std::string
name()
const override {
return "Power"; }
39 const std::string
summary()
const override {
40 return "The Power algorithm will raise the base workspace to a particular "
41 "power. Corresponding error values will be created.";
45 int version()
const override {
return 1; }
46 const std::vector<std::string>
seeAlso()
const override {
return {
"Exponential",
"Logarithm"}; }
48 const std::string
category()
const override {
return "Arithmetic"; }
52 void defineProperties()
override;
53 void retrieveProperties()
override;
54 void performUnaryOperation(
const double XIn,
const double YIn,
const double EIn,
double &YOut,
double &EOut)
override;
56 inline double calculatePower(
const double base,
const double exponent);
Provides the ability to raise the values in the workspace to a specified power.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version for identification.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
double m_exponent
Exponent to raise the base workspace to.
const std::string name() const override
Algorithm's name for identification.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
UnaryOperation supports the implementation of a Unary operation on an input workspace.
Helper class which provides the Collimation Length for SANS instruments.