0

Is there any library or the code of a function in C++ that I can use for comparing numeric vectors in C++?

POD
  • 509
  • 8
  • 20
  • What you mean by compare? Also, what you mean by numeric vector? – khajvah Jul 15 '13 at 15:10
  • What sort of vectors ? – Paul R Jul 15 '13 at 15:10
  • Levenshtein distance wouldn't be a good option for me, because I have to compare the similarity regardless of the order of sequence – POD Jul 15 '13 at 15:15
  • @PaulR C++ vectors that are filled with numbers – POD Jul 15 '13 at 15:16
  • @khajvah I have many vectors that are filled with numbers like vector1->(12,42,13,65) and vector2->(12,42,13). Now I want to get the similarity between these two vectors. – POD Jul 15 '13 at 15:17
  • 1
    I don't know anything about jaro-winkler but why don't you write your own function, I am guessing, it shouldn't be that hard – khajvah Jul 15 '13 at 15:20
  • @khajvah I can write it down, but I am looking for a fast function that can do that. I have the Jaro_wrinkler Sudo code, but from what I got in Java, it wasn't fast enough – POD Jul 15 '13 at 15:23

1 Answers1

0

Just googled a little and found smth like that here I think you can use that to write your own which will work with numbers and vectors. Anyways, I dont know that topic but they say it is about strings(in other words letters). Also, I don't think for a project of this scale, speed will be an issue.

khajvah
  • 4,889
  • 9
  • 41
  • 63
  • I have to do the measurement between 100000 vectors, so the speed is important for me. I will try this code to see how fast does it work. – POD Jul 15 '13 at 15:44