This is documentation for an old release of SciPy (version 0.10.0). Read this page in the documentation of the latest stable release (version 1.15.1).
Computes the Canberra distance between two n-vectors u and v, which is defined as
Parameters : | u : ndarray
v : ndarray
|
---|---|
Returns : | d : double
|
Notes
Whe u[i] and v[i] are 0 for given i, then the fraction 0/0 = 0 is used in the calculation.