array_to_bin_edges

msaexp.utils.array_to_bin_edges(array)[source]

Compute bin edges of an input array where the bin widths are the array steps

Parameters
arrayarray-like

Input array with length N

Returns
binsarray-like

Bin edges with length N+1