R/deleteOne.R

smacofDeleteOne <- function (delta, ndim, type) {
    n <- nrow (delta)
    x <- array (0, c (n, ndim, n))
    for (i in 1:n) {
        xi <- smacofSym(delta[-i, -i], ndim = ndim, type = type)$conf
        x[((1 : n)[-i]), (1 : ndim), i] <- xi
        x[i, (1 : ndim), i] <- 0
        }
    return (x)
}

Try the smacof package in your browser

Any scripts or data that you put into this service are public.

smacof documentation built on March 19, 2024, 3:09 a.m.