Nothing
ghapca <- function (lambda, U, x, gamma, q = length(lambda), center, sort = TRUE)
{
d <- NROW(U)
k <- NCOL(U)
stopifnot(length(x)==d)
if (!missing(lambda))
stopifnot(length(lambda)==k)
if (!missing(center))
x <- x - center
gamma <- rep_len(gamma,k)
if (!is.matrix(U))
U <- as.matrix(U)
y <- crossprod(U,x)
U <- ghapca_C(U,x,y,gamma)
if (!missing(lambda)) {
lambda <- (1-gamma) * lambda + gamma * y * y
if (sort) {
ix <- order(lambda, decreasing = TRUE)
if (!identical(ix,1:k)) {
lambda <- lambda[ix]
U <- U[,ix]
}
}
if (q<k)
length(lambda) <- q
} else lambda <- NULL
if (q<k)
U <- U[,1:q]
return(list(values = lambda, vectors = U))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.