Computes the sum of the numerator and denominator terms over all locations in each zone, as part of the score calculation.
score_zone_sums(table, zones)A data.table with columns location, duration, num,
denom; the output from negbin_score_terms.
A set of zones, each zone itself being a set
containing locations. Locations should be encoded as integers.
A data.table with columns zone, duration, num, denom.