Compute bin edges of an input array where the bin widths are the array steps
Input array with length N
N
Bin edges with length N+1
N+1
array_to_bin_edges()