| gpuPrcomp | R Documentation |
Principal components of a data matrix, as prcomp computes
them, with the singular value decomposition on the GPU
(gpuSvd).
gpuPrcomp(x, retx = TRUE, center = TRUE, scale. = FALSE, tol = NULL,
rank. = NULL, precision = getOption("gputools.precision", "single"))
x, retx, center, scale., tol, rank. |
as for |
precision |
|
An object of class "prcomp", as prcomp returns, so
summary, predict, biplot and screeplot work on
it. Each component's sign is arbitrary, as with any principal components,
so a column of rotation and of x can be the negative of
prcomp's.
prcomp, gpuSvd
pc <- gpuPrcomp(USArrests, scale. = TRUE)
summary(pc)
head(predict(pc, USArrests), 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.