compute_grid_weights¶
- beast.physicsmodel.grid_weights.compute_grid_weights(in_x, log=False)[source]¶
Compute the grid weights. Needed for marginalization (aka integration). The weights are the relative widths of of each x bin.
- Parameters:
- xnumpy array
centers of each bin
- logboolean
set if values are in log units
- Returns:
- weightsnumpy array
weights as bin widths divided by the average width