Solved

Euclidean distance between list of Vectors with different size of lists

Posted on 2011-03-01
12
529 Views
Last Modified: 2012-05-11
Hello,
I have 2 lists
List1 = [ V1,V2,V3,...,Vn] and List2 = [V1,V2,V3,....,Vk]   ==> Where K != n
And Where all the vectors in both lists have same length of course.

How can i compute the distance between these 2 lists of vectors?
1. Shall i take the centrois of each lists?


Thank you.
0
Comment
Question by:dadadude
  • 9
  • 3
12 Comments
 

Author Comment

by:dadadude
ID: 35015076
say i take the centroids or center of gravity how can i compute it?
0
 
LVL 84

Expert Comment

by:ozo
ID: 35015082
That's one way.
Other ways include
Minimum distance from a vector in one list to a vector in the other list
Maximum distance from a vector in one list to a vector in the other list
Average distance from a vector in one list to a vector in the other list
Sum of distances from the centroid of both lists to the vectors in each list
...
What properties do you want this distance to have?
0
 

Author Comment

by:dadadude
ID: 35015126
Actually i want to compute the dissimilarity between list1 and list2.
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

by:dadadude
ID: 35015163
if i want to compute the center of gravity or centroid for a list of elements it's easy:
L = [e1,e2,...,en] it's easy just the mean.
But what is confusing me a little is this i can't figure it out:
If L = [v1,v2,....,vn] with each vi = [ x1,...xk] now how can i do it?? ouf it's a little complicated.
0
 
LVL 84

Expert Comment

by:ozo
ID: 35015189
for the centroid, you can take the centroid of each component.
What properties do you want the dissimilarity to have?
What kinds of lists do you want to be dissimilar to other lists?
For example, one property of the centroid measure you propose is that changing the order of the elements of a list does not change its dissimilarity.
Another is that it satisfies the triangle inequality.
0
 

Author Comment

by:dadadude
ID: 35015229
Well actually it should satisfy the Triangle inequality.
0
 

Author Comment

by:dadadude
ID: 35015233
well i have a question for the centroid but i'll ask it later.
0
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 35015256
Ok, but many kinds of dissimilarity measures satisfy the triangle inequality.
one advantage of centroid over some others is that it is fast and easy to compute
0
 

Author Comment

by:dadadude
ID: 35015260
Sorry Correction, Correction
dadadude:
Well actually it should satisfy the Triangle inequality. NOT TRIANGLE INEQUALITY!!!
I want to have a Diagonal Matrix. all entries on the diagonal should be 0.
So i should compute the euclidean distance.


SORRY !!!!!!!!!!!!!
0
 

Author Comment

by:dadadude
ID: 35015263
Ouf it's confusing now. Sorry for the mistake.
0
 

Author Comment

by:dadadude
ID: 35015683
yeah well maybe i can work on the hausdorff distance i just find something on google. It's not bad and it's close to what u said. MAx[Min[d1,....dn]]

0
 

Author Closing Comment

by:dadadude
ID: 35016666
no follow up sorry. I got the answer from a free forum.
Thank you anyway.
take care....
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Okay. So what exactly is the problem here? How often have we come across situations where we need to know if two strings are 'similar' but not necessarily the same? I have, plenty of times. Until recently, I thought any functionality like that wo…
Article by: Nadia
Suppose you use Uber application as a rider and you request a ride to go from one place to another. Your driver just arrived at the parking lot of your place. The only thing you know about the ride is the license plate number. How do you find your U…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question