skxray.core.bin_edges_to_centers

skxray.core.bin_edges_to_centers(input_edges)

Helper function for turning a array of bin edges into an array of bin centers

Parameters:

input_edges : array-like

N + 1 values which are the left edges of N bins and the right edge of the last bin

Returns:

ndarray :

A length N array giving the centers of the bins