fix weighted covariance
Merge pull request #468 from ndawe/master

[MRG] fix weighted covariance