pub fn demixed_from_centered(
mean_mat: &[f64],
n_cond: usize,
t: usize,
n_components: usize,
) -> (Vec<f64>, Vec<f64>)Expand description
Demixed PCA of a grand-mean-centred condition-mean matrix (n_cond × t).
Returns (projected [n_cond × nc], explained_variance_ratio [nc]).