cell_mass#
- hybrid_aif.cell_mass(belief, grid)[source]#
The probability vector over the cells of
gridthatbeliefputs its mass in.A Gaussian’s mass in a rectangular cell is the product of its marginal masses along the grid’s axes, each a difference of the normal distribution function at the cell edges (the correlation between axes is dropped); the first and last cell on each axis absorb the tails. A mixture’s is the weight-sum of its components’ masses. Returns
(*batch, cells), cells row-major overgrid.shape, summing to one, and smooth in the means.