Skip to main content

pca

Function pca 

Source
pub fn pca(data: &[Vec<f64>], n_components: usize) -> Option<PcaResult>
Expand description

Compute PCA using power iteration on the covariance matrix.

Returns up to n_components principal components. data[i] is the i-th observation of length d.