Mean from a frequency table