Computes the Canberra distance between two 1-D arrays.
The Canberra distance is defined as
Parameters : | u : (N,) array_like
v : (N,) array_like
|
---|---|
Returns : | canberra : double
|
Notes
When u[i] and v[i] are 0 for given i, then the fraction 0/0 = 0 is used in the calculation.