pub fn pdist( points: &[Vec<f64>], metric: &Metric, ) -> Result<Vec<f64>, ErrorsJSL>
The condensed distance matrix of m observations (SciPy’s pdist): the m(m − 1)/2 distances d(i, j) for i < j, in row order.
m
pdist
m(m − 1)/2
d(i, j)
i < j