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_dm

scipy.spatial.distance.num_obs_dm(d)[source]

Return the number of original observations that correspond to a square, redundant distance matrix.

Parameters
dndarray

The target distance matrix.

Returns
num_obs_dmint

The number of observations in the redundant distance matrix.

Previous topic

scipy.spatial.distance.is_valid_y

Next topic

scipy.spatial.distance.num_obs_y