Exponential v1¶
Summary¶
The Exponential algorithm will transform the signal values ‘y’ into e^y.
See Also¶
Properties¶
Name |
Direction |
Type |
Default |
Description |
---|---|---|---|---|
InputWorkspace |
Input |
Mandatory |
The name of the input workspace |
|
OutputWorkspace |
Output |
Mandatory |
The name to use for the output workspace (can be the same as the input one). |
Description¶
The algorithm will apply the exponential function (i.e.
Usage¶
import numpy as np
# Create a workspace
ws = CreateSampleWorkspace()
# Apply the natural exponential function to the data in the workspace
res = Exponential( ws )
# Check the result
y = ws.readY(0)
yres = res.readY(0)
# Use numpy array calculation to apply an exponential to all elements of array y
yexp = np.exp(y)
# Use numpy to check that all elements in two arrays are equal
print(np.all( yexp == yres ))
Output¶
True
Categories: AlgorithmIndex | Arithmetic
Source¶
C++ header: Exponential.h
C++ source: Exponential.cpp