ENH : added bin edges -> bin centers function

 - convince function + test
we can also try return (input_edges[:-1] + input_edges[1:] )/2?