Reconstructs (an approximation of) the original data from a genpca fit as
ou[, comp] %*% diag(d[comp]) %*% t(ov[, comp]), followed by the inverse of
the preprocessing transform. With all components and full rank this
recovers the original data.
Usage
# S3 method for class 'genpca'
reconstruct(
x,
comp = 1:multivarious::ncomp(x),
rowind = NULL,
colind = NULL,
...
)Arguments
- x
A
genpcaobject.- comp
Integer vector of components to use (default: all).
- rowind
Optional integer vector of rows to reconstruct (default: all).
- colind
Optional integer vector of columns to reconstruct (default: all). The inverse preprocessing transform is applied to the selected columns.
- ...
Ignored.