Added function for computing occupancy from the HEAP spatial model.