Internal helper used by pca_robust() to compute a singular value
decomposition that is less sensitive to individual rows with extreme values.
The routine alternates between computing the SVD of a row-weighted matrix and
updating the weights via a Huber-type scheme based on the reconstruction
residuals.
prepare_svd_robust_input(x, ncomp, max_iter, tol, huber_k)A list containing x, n, p, ncomp, max_iter, tol and huber_k.
Numeric matrix for which the decomposition should be computed.
Number of leading components to retain.
Maximum number of reweighting iterations.
Convergence tolerance applied to successive changes in the row weights and singular values.
Tuning constant controlling the aggressiveness of the Huber weight function. Larger values down-weight fewer observations.