wfu function

Weight function (for Mahalabobis distances)