From Weighted Sums to Center of Mass Integrals