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
. The X resolution (DX) for this point is .Calculate grouping width
FractionOfDx
* .Select ungrouped points within
from point .Calculate the average X, average Y, and the square root of the averaged squared sums of E of the selected points.
Calculate new resolution
where 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