
Run randomised SVD over a matrix
rs_random_svd.Rd
Runs a randomised singular value decomposition over a matrix. This
implementation is faster than the full SVD on large data sets, with slight
loss in precision.
Arguments
- x
Numeric matrix. Rows = samples, columns = features.
- scale
Boolean. Shall the columns be variance normalised. (Mean centring will automatically occur.)
- rank
Integer. The rank to use.
- seed
Integer. Random seed for reproducibility.
- oversampling
Optional integer. Defaults to
10LifNULL.- n_power_iter
Optional integer. Number of power iterations (each with a QR decomposition). Defaults to
2LifNULL.