Clustering algorithms using stochastic analysis and ensemble techniques.
from_gram(g)
Given a Gram matrix, computes the corresponding distance of the basis vectors.
Mathematically, if the input g[i,j] is given by the matrix \(g_{i,j}\), then the output
D[i,j] is given by \(D_{i,j}\):