27 declareProperty(
"Exponent", 1.0,
"The exponent with which to raise base values in the base workspace to.");
35 EOut = std::fabs(
m_exponent * YOut * (EIn / YIn));
38inline double Power::calculatePower(
const double base,
const double exponent) {
return std::pow(base, exponent); }
#define DECLARE_ALGORITHM(classname)
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
Provides the ability to raise the values in the workspace to a specified power.
void retrieveProperties() override
A virtual function in which additional properties should be retrieved into member variables.
double calculatePower(const double base, const double exponent)
calculate the power
double m_exponent
Exponent to raise the base workspace to.
void performUnaryOperation(const double XIn, const double YIn, const double EIn, double &YOut, double &EOut) override
Carries out the Unary operation on the current 'cell'.
void defineProperties() override
A virtual function in which additional properties of an algorithm should be declared.
UnaryOperation supports the implementation of a Unary operation on an input workspace.