Compute mean.