scipy.spatial.distance.braycurtis

scipy.spatial.distance.braycurtis(u, v)

Computes the Bray-Curtis distance between two n-vectors u and v, which is defined as

\sum{|u_i-v_i|} / \sum{|u_i+v_i|}.

Parameters :

u : ndarray

An n-dimensional vector.

v : ndarray

An n-dimensional vector.

Returns :

d : double

The Bray-Curtis distance between vectors u and v.

Previous topic

scipy.spatial.distance.num_obs_y

Next topic

scipy.spatial.distance.canberra

This Page