bundles / scipy 1.17.1 / scipy / spatial / distance / num_obs_dm
function
scipy.spatial.distance:num_obs_dm
source: /scipy/spatial/distance.py :2503
Signature
def num_obs_dm ( d ) Summary
Return the number of original observations that correspond to a square, redundant distance matrix.
Parameters
d: array_likeThe target distance matrix.
Returns
num_obs_dm: intThe number of observations in the redundant distance matrix.
Examples
Find the number of original observations corresponding to a square redundant distance matrix d.from scipy.spatial.distance import num_obs_dm d = [[0, 100, 200], [100, 0, 150], [200, 150, 0]] num_obs_dm(d)✓
Aliases
-
scipy.spatial.distance.num_obs_dm