[SciPy-User] It is quite confusing to use scipy.spatial.distance

Pauli Virtanen pav at iki.fi
Mon May 30 10:19:42 EDT 2011


Mon, 30 May 2011 20:26:13 +0800, 江大伟 wrote:
> Thanks. This is an googd solusion.
> But it is not the best solusion.
> 
> Using an uniform function to Computes the distance between
> any-dimensional array. Scipy.spatial.distance.cdist() is a very good
> function, and it can be extended to Computes the distance between a
> vector and a vector as well as between a vector and n vectors. That
> would be perfect !!.

I do not understand what you exactly mean. The example I gave does
exactly what you describe.

-- 
Pauli Virtanen




More information about the SciPy-User mailing list