Weighted mean latency

Combine average latencies from different groups, weighting each by its sample count.