SciPy

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:

Y : ndarray

Condensed distance matrix.

Returns:

n : int

The number of observations in the condensed distance matrix Y.