covw function

Weighted means, covariance and scattering matrices conditioning on a weighted matrix