Open grigory93 opened 8 years ago
R function prcomp
returns a list of class "prcomp"
that contains:
sdev
: the standard deviations of the principal components. Components are sorted by these values (which indicate imporance)rotation
: corresponds to what Aster PCA function computescenter
: logical if centering was usedscale
: logical if scaling was usedx
: the value of the rotated data (we won't support it for now)Compared to Aster implementation the following are missing parts that function computePca
should offer:
prcomp
being both classes "prcomp"
and "toapca"
prcomp
(arguments center
and scale
) support centering and scaling (in any combination) using Aster scale functions (ScaleMap
and Scale
)sdev
values. I believe it's possible to calculate somehow - needs checking.Please, approach this requirements rather critically and correct as appropriate.
Existing workflow implemented in computeKmeans
can serve as a template for computePca
The function
computePca
would return prcomp-class list (seeprcomp
) after performing PCA in Aster on Aster table. The flow and implementation is similar tocomputeKmeans
implementation.