Mantid
Loading...
Searching...
No Matches
Exponential.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
13
14namespace Mantid {
15namespace Algorithms {
32class MANTID_ALGORITHMS_DLL Exponential : public UnaryOperation {
33public:
37 const std::string name() const override { return "Exponential"; }
39 const std::string summary() const override {
40 return "The Exponential algorithm will transform the signal values 'y' "
41 "into e^y.";
42 }
43
45 int version() const override { return (1); }
46 const std::vector<std::string> seeAlso() const override { return {"Power", "Logarithm"}; }
47
48private:
49 // Overridden UnaryOperation methods
50 void performUnaryOperation(const double XIn, const double YIn, const double EIn, double &YOut, double &EOut) override;
51
52 /*
53 void performBinaryOperation(const MantidVec& lhsX, const MantidVec& lhsY,
54 const MantidVec& lhsE,
55 const MantidVec& rhsY, const MantidVec& rhsE,
56 MantidVec& YOut, MantidVec& EOut);
57 void performBinaryOperation(const MantidVec& lhsX, const MantidVec& lhsY,
58 const MantidVec& lhsE,
59 const double& rhsY, const double& rhsE, MantidVec&
60 YOut, MantidVec& EOut);
61 */
62 // try and set output units field
63 // void setOutputUnits(const API::MatrixWorkspace_const_sptr
64 // lhs,API::MatrixWorkspace_sptr out);
65};
66
67} // namespace Algorithms
68} // namespace Mantid
Exponential performs the exponential function on an input workspace.
Definition: Exponential.h:32
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Definition: Exponential.h:37
int version() const override
Algorithm's version for identification overriding a virtual method.
Definition: Exponential.h:45
const std::string summary() const override
Summary of algorithms purpose.
Definition: Exponential.h:39
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: Exponential.h:46
UnaryOperation supports the implementation of a Unary operation on an input workspace.
Helper class which provides the Collimation Length for SANS instruments.