powered by
whitener(X, n.comp = ncol(X), center.row = FALSE, irlba = FALSE)
svd
irlba::irlba
simData <- cbind(rnorm(1000,1,2),rnorm(1000,-1,3),rnorm(1000,4,1)) simMVN <- simData%*%matrix(rnorm(12),3,4) simWhiten <- whitener(simMVN,n.comp = 3) colMeans(simWhiten$Z) cov(simWhiten$Z)
Run the code above in your browser using DataLab