fun
stats
distributions
Mean of the values in the sequence x.
Negative values in weights are allowed. The only constraint is that sum(weights) is not zero.