\(\renewcommand\AA{\unicode{x212B}}\)
ConvolveWorkspaces v1¶
Summary¶
Convolution of two workspaces.
Properties¶
Name |
Direction |
Type |
Default |
Description |
---|---|---|---|---|
Workspace1 |
Input |
Mandatory |
The name of the resolution workspace |
|
Workspace2 |
Input |
Mandatory |
The name of the data workspace. |
|
OutputWorkspace |
Output |
The name of the output workspace. |
Description¶
Convolution of two workspaces using the Convolution function. Workspaces must have the same number of spectra.
Usage¶
Example: Convolve sample workspaces
ws = CreateSampleWorkspace("Histogram",NumBanks=1,BankPixelWidth=1)
ws = ConvertUnits(ws,"Wavelength")
ws = Rebin(ws,Params=[1])
#restrict the number of wavelength points to speed up the example
wsOut = ConvolveWorkspaces(ws,ws)
print("Output: {}".format(wsOut.readY(0)))
Output:
Output: [ 74.7278871 26.1996044 32.3478194 121.57078223 175.00835395
146.57078223]
Categories: AlgorithmIndex | Utility\Workspaces
Source¶
C++ header: ConvolveWorkspaces.h
C++ source: ConvolveWorkspaces.cpp