MinusMD v1
Subtract two MDWorkspaces.
| Name |
Direction |
Type |
Default |
Description |
| LHSWorkspace |
Input |
IMDWorkspace |
Mandatory |
An MDEventWorkspace, MDHistoWorkspace or WorkspaceSingleValue as the left-hand side of the operation. |
| RHSWorkspace |
Input |
IMDWorkspace |
Mandatory |
An MDEventWorkspace, MDHistoWorkspace or WorkspaceSingleValue as the right-hand side of the operation. |
| OutputWorkspace |
Output |
IMDWorkspace |
Mandatory |
Name of the output MDEventWorkspace or MDHistoWorkspace. |
Subtract two MDHistoWorkspace‘s or a
MDHistoWorkspace and a scalar.
- MDHistoWorkspace - MDHistoWorkspace
- The operation is performed element-by-element.
- ‘’‘MDHistoWorkspace - Scalar ‘’‘
- The scalar is subtracted from every element of the
MDHistoWorkspace. The squares of errors are summed.
- Scalar - MDHistoWorkspace
- `MDEventWorkspace <http://www.mantidproject.org/MDEventWorkspace>`_ -
`MDEventWorkspace <http://www.mantidproject.org/MDEventWorkspace>`_
- The signal of each event on the right-hand-side is multiplied by
-1 before the events are summed.
- The number of events in the output MDEventWorkspace is that of the
LHS and RHS workspaces put together.
- `MDEventWorkspace <http://www.mantidproject.org/MDEventWorkspace>`_ - Scalar or
MDHistoWorkspace
Categories: Algorithms | MDAlgorithms\MDArithmetic
C++ source: MinusMD.cpp (last modified: 2017-06-19)
C++ header: MinusMD.h (last modified: 2016-06-14)