SciPy

This is documentation for an old release of SciPy (version 1.5.3). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.spatial.distance.num_obs_y

scipy.spatial.distance.num_obs_y(Y)[source]

Return the number of original observations that correspond to a condensed distance matrix.

Parameters
Yndarray

Condensed distance matrix.

Returns
nint

The number of observations in the condensed distance matrix Y.

Previous topic

scipy.spatial.distance.num_obs_dm

Next topic

scipy.spatial.distance.braycurtis