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: |
|
---|---|
Returns: | DissimilarityMatrix (or subclass) instance of random distances. Type depends on constructor. |
Return type: |
See also
numpy.random.rand()