distance
↳ stoclust
Contains functions providing calculation
of basic distance metrics from raw data.
Functions
-
euclid(vecs)
Given a set of vectors, determines the Euclidean distance between them.
-
from_gram(g)
Given a Gram matrix, computes the corresponding distance of the basis vectors.
-
kl_div(probs)
Given an array of probability distributions, returns a matrix of Kullback-Liebler divergences between the distributions.
-
kl_div_cross(probs)
Given a Gram matrix, computes the corresponding distance of the basis vectors.