R/rd-signed.r

Defines functions robust.distance.signed

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
}
snowball-project/DESnowball documentation built on May 30, 2019, 6:03 a.m.