https://github.com/cran/smacof
Tip revision: d643973f74bee86ab6d37073463aa9f1cb5ddc6d authored by Jan de Leeuw on 30 November 2011, 00:00:00 UTC
version 1.2-1
version 1.2-1
Tip revision: d643973
deleteOne.R
smacofDeleteOne <- function (delta, ndim, metric = FALSE) {
n <- nrow (delta)
x <- array (0, c (n, ndim, n))
for (i in 1:n) {
xi <- smacofSym(delta[-i, -i], ndim = ndim, metric = metric)$conf
x[((1 : n)[-i]), (1 : ndim), i] <- xi
x[i, (1 : ndim), i] <- 0
}
return (x)
}