pub fn cosine(a: &[f64], b: &[f64]) -> f64
Cosine similarity between two vectors (θ-recovery metric).