Get the mean applying some weights
getWeightedMean(y, weights = NULL, norm = TRUE)
a vector to compute the mean for
the vector of weights, can be NULL, then will just return mean
normalize the weights so that they have mean of 1, default is to normalize
the weighted mean