stoclust

Logo

Clustering algorithms using stochastic analysis and ensemble techniques.

euclid

  ↳ distance

euclid(vecs)

Given a set of vectors, returns a matrix with the Euclidean distance between them.

Mathematically, if the input vecs[i,j] is given by the matrix \(v_{i,j}\), then the output D[i,j] is given by \(D_{i,j}\):

\[D_{i,j} = \sqrt{\sum_{k} \left(v_{i,k} - v_{j,k}\right)^2}\]