Calculates statistics for a non-overlapping neighborhood.