R/rd-signed.r

robust.distance.signed <-
function(x,method='mcd')
{
    x.w <- as.matrix(x$weights)
    robcov <- cov.rob(x.w,method=method)
    rob.dist <- mahalanobis(x.w,
			    center=robcov$center,
			    cov=robcov$cov)
    rob.dist
}
tbilab/DESnowball documentation built on May 31, 2019, 3:58 a.m.