qis.compute_pca_r2¶
- qis.compute_pca_r2(cmatrix, is_cumulative=False)[source]¶
explained-variance shares of the eigenvalues of a symmetric matrix.
The shares are
nu_j / sum_k nu_kwith the eigenvaluesnu_jofapply_pca()in descending order. They lie in [0, 1] and sum to one only for a positive semi-definite input; a negative eigenvalue, as a pairwise-complete matrix can have, gives a negative share.