Added weightedMean().