Having count in cell for different bins provides different densities in a cell. Therefore I think I need to perform weighted averages over mass or volume of the cell. I am looking for an explanation how to do the averaging in either over cell-mass or cell volume?