R/GSEArot-internal.R

Defines functions .householder

.householder <-
function(x){ 
        m <- length(x)
        alpha <- sqrt(drop(crossprod(x)))
        e <- c(1,rep(0,m-1))
        u <- x - alpha*e
        v <- u/sqrt(drop(crossprod(u)))
        diag(m) - 2*v%*%t(v)
}

Try the GSEArot package in your browser

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

GSEArot documentation built on May 2, 2019, 4:56 p.m.