\(\renewcommand\AA{\unicode{x212B}}\)
GroupToXResolution v1¶
Summary¶
Groups points within intervals given by the Dx into single points
Properties¶
| Name | Direction | Type | Default | Description | 
|---|---|---|---|---|
| InputWorkspace | Input | Mandatory | An input workspace with Dx values. | |
| OutputWorkspace | Output | Mandatory | The grouped workspace. | |
| FractionOfDx | Input | number | 0.2 | A fraction of Dx to group the points to. | 
Description¶
This algorithm groups the points of a single histogram workspace according to the X resolution stored in the DX array.
The figure below shows schematically how the grouping procedure proceeds.
 
- Select first ungrouped point \(i\). The X resolution (DX) for this point is \(D_{i}\). 
- Calculate grouping width \(w_{i} =\) - FractionOfDx* \(D_{i}\).
- Select ungrouped points within \(w_{i}\) from point \(i\). 
- Calculate the average X, average Y, and the square root of the averaged squared sums of E of the selected points. 
- Calculate new resolution \(D^{\circ} = \sqrt{D_{i}^{2} + (0.68 \Delta X)^{2}}\) where \(\Delta X\) is span of the X values of the selected points. 
- Replace the selected points with a single grouped point. 
- Return to 1. 
Usage¶
Example - Grouping points to X resolution
 
Enable :plots: using DOCS_PLOTDIRECTIVE in CMake
Categories: AlgorithmIndex | Transforms\Rebin
Source¶
C++ header: GroupToXResolution.h
C++ source: GroupToXResolution.cpp