42 const std::string
name()
const override {
return "PolynomialCorrection"; }
44 const std::string
summary()
const override {
45 return "Corrects the data in a workspace by the value of a polynomial "
46 "function which is evaluated at the X value of each data point.";
50 int version()
const override {
return 1; }
51 const std::vector<std::string>
seeAlso()
const override {
52 return {
"OneMinusExponentialCor",
"MagFormFactorCorrection",
"ExponentialCorrection",
"PowerLawCorrection"};
55 const std::string
category()
const override {
return "CorrectionFunctions"; }
59 void defineProperties()
override;
60 void retrieveProperties()
override;
61 void performUnaryOperation(
const double XIn,
const double YIn,
const double EIn,
double &YOut,
double &EOut)
override;
Corrects the data and error values on a workspace by the value of a polynomial function which is eval...
int version() const override
Algorithm's version for identification.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification.
bool m_isOperationMultiply
True is the operation is multiply, false.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
std::vector< double >::size_type m_polySize
correction function
std::vector< double > m_coeffs
Holds the coefficients for the polynomial.
const std::string summary() const override
Summary of algorithms purpose.
UnaryOperation supports the implementation of a Unary operation on an input workspace.
Helper class which provides the Collimation Length for SANS instruments.