skbio.core.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 [R56].

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

References

[R56](1, 2) http://docs.scipy.org/doc/scipy/reference/spatial.distance.html