|
|
Re: Euclidean distance of all pairwise combinations (redundants)
Posted:
Nov 15, 2012 4:07 AM
|
|
On 11/14/2012 12:33 AM, Jesse Pisel wrote: > > list = {{1, 1}, {2, 2}, {3, 3}} > EuclideanDistance @@@ Subsets[list, {2}] > > Any ideas on how to get the euclidean distance between all the points >including redundants and self references? > >
may be
------------------ list = {{1, 1}, {2, 2}, {3, 3}} EuclideanDistance @@@ Tuples[list, 2] -----------------
{0,Sqrt[2],2 Sqrt[2],Sqrt[2],0,Sqrt[2],2 Sqrt[2],Sqrt[2],0} --Nasser
|
|