Centre the bins of a real array (i.e. convert from histogram to point mode).
CENTRE_BINS | array=Array | Centre the bins of a real array (i.e. convert from histogram to point mode). |
example:
# Do a rough conversion from a histogram workspace to # to a new point mode workspace point_mode = my_work point_mode.x = centre_bins(my_work.x) # convert an array to point mode centre_bins my_array
The Centre() command is useful for converting histogram data to point mode data. Used on the X-array of a workspace, it will reduce the total number of X points by one and the X values left will be those of the centre of each bin.
Array (Array)
Any valid Open GENIE array type
RESULT = (Array)
Returns the centered array