def _BinData(data, bins):
    (hist, edges) = np.histogram(a=range(bins), bins=bins, weights=data)
    center = ((edges[:(- 1)] + edges[1:]) / 2.0)
    width = (edges[1:] - edges[:(- 1)])
    return (hist, edges, center, width)
def _BinData(data, bins):
    (hist, edges) = np.histogram(a=range(bins), bins=bins, weights=data)
    center = ((edges[:(- 1)] + edges[1:]) / 2.0)
    width = (edges[1:] - edges[:(- 1)])
    return (hist, edges, center, width)