Mean from frequency table