skbio.stats.distance.
randdm
(num_objects, ids=None, constructor=None, random_fn=None)[source]¶Generate a distance matrix populated with random distances.
State: Experimental as of 0.4.0.
Using the default random_fn, distances are randomly drawn from a uniform
distribution over [0, 1)
.
Regardless of random_fn, the resulting distance matrix is guaranteed to be symmetric and hollow.
Parameters: | num_objects : int
ids : sequence of str or None, optional
constructor : type, optional
random_fn : function, optional
|
---|---|
Returns: | DissimilarityMatrix
|
See also
numpy.random.rand