Package src :: Package stats306b :: Package utils
[hide private]
[frames] | no frames]

Package utils

source code

A few utilities:

distances: compute pairwise distances on a dataset with a given metric. floyd: Floyd's algorithm for finding shortest paths in graph with edge weights

Submodules [hide private]

Functions [hide private]
 
distances(data, metric=<function <lambda> at 0x866c764>)
Compute all pairwise distances between points.
source code
Function Details [hide private]

distances(data, metric=<function <lambda> at 0x866c764>)

source code 

Compute all pairwise distances between points.

Default metric is the norm between x and y.