pub fn correlation_matrix(data: &[Vec<f64>]) -> Vec<Vec<f64>>
Compute the Pearson correlation matrix for a data matrix.
data[i] is the i-th observation (a row), each of length d. Returns a d × d correlation matrix.
data[i]
d
d × d