compute_bin_boundaries

beast.physicsmodel.grid_weights.compute_bin_boundaries(tab, noneg=False)[source]

Computes the boundaries of bins

The bin boundaries are defined as the midpoint between each value in tab. At the two edges, 1/2 of the bin width is subtracted/added to the min/max of tab.

Parameters:

tab (numpy array) – centers of each bin

Returns:

tab2 – boundaries of the bins

Return type:

numpy array