osier.utils.distance_matrix#

osier.utils.distance_matrix(X, metric='euclidean')[source]#

This function calculates the distance matrix for an MxN matrix and returns the symmetrical square form of the matrix.

Parameters:
Returns:

D – An MxM matrix of distance values and zeros along the diagonal.

Return type:

numpy.ndarray