export computeWeightedMean