stoclust

Logo

Clustering algorithms using stochastic analysis and ensemble techniques.

distance

  ↳ stoclust

Contains functions providing calculation of basic distance metrics from raw data.

Functions

  • euclid

    euclid(vecs)
    Given a set of vectors, determines the Euclidean distance between them.
  • from_gram

    from_gram(g)
    Given a Gram matrix, computes the corresponding distance of the basis vectors.
  • kl_div

    kl_div(probs)
    Given an array of probability distributions, returns a matrix of Kullback-Liebler divergences between the distributions.
  • kl_div_cross

    kl_div_cross(probs)
    Given a Gram matrix, computes the corresponding distance of the basis vectors.