This function is used in FastHCS to compute the parameter estimates of the PCA models used at different steps of the algorithm. It is an internal function not intended to be called by the user.
compPcaParams(x,fitd,q=NULL,z0=NULL,seed=1)
A data matrix x.
The (internal) result of a call to FastHCS.
Desired rank of the SVD decomposition.
Optional. Result of a call to FHCSkernelEVD
.
Seed used to initialize the RNG. Defaults to 1.
A list with the following components:
The multivariate mean of the observations with indexes in best.
The (rank q) loadings matrix of the observations with indexes in best.
The eigenvalues of the observations with indexes in best multiplied by a consistency factor.
The value of the projected on the space of the principal components data (the centred data multiplied by the loadings matrix) is returned. Hence, cov(scores) is the diagonal matrix diag(eigenvalues).