\(\renewcommand\AA{\unicode{x212B}}\)
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
- :ref:`MDEventWorkspace <MDWorkspace>` -
:ref:`MDEventWorkspace <MDWorkspace>`
- 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.
- :ref:`MDEventWorkspace <MDWorkspace>` - Scalar or
MDHistoWorkspace
Categories: AlgorithmIndex | MDAlgorithms\MDArithmetic