Helper function for turning a array of bin edges into an array of bin centers
input_edges : array-like
N + 1 values which are the left edges of N bins and the right edge of the last bin
ndarray :
A length N array giving the centers of the bins