weights for median and mad in memdata