compute_bin_boundaries¶
-
beast.physicsmodel.grid_weights_stars.compute_bin_boundaries(tab)[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 subtractted/added to the min/max of tab.
- Parameters
- tabnumpy array
centers of each bin
- Returns
- tab2numpy array
boundaries of the bins