skbio.stats.distance.DistanceMatrix.condensed_form#

DistanceMatrix.condensed_form()[source]#

Return an array of distances in condensed format.

Returns:
ndarray

One-dimensional numpy.ndarray of distances in condensed format.

Notes

Condensed format is described in [1].

The conversion is not a constant-time operation, though it should be relatively quick to perform.

References