]> git.donarmstrong.com Git - biopieces.git/commitdiff
added levenshtein edit distance calculator
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 20 Jun 2013 21:09:51 +0000 (21:09 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 20 Jun 2013 21:09:51 +0000 (21:09 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@2182 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/levenshtein.rb

index d344e628cb3c71c3a27f6c58234130e1271312d7..bbc2c70ffc4f95f5985e747d9d4543d88b51f76a 100644 (file)
@@ -59,12 +59,12 @@ class Levenshtein
 
     builder.c %{
       VALUE distance_C(
-        VALUE _s,
-        VALUE _t,
-        VALUE _s_len,
-        VALUE _t_len,
-        VALUE _v0,
-        VALUE _v1
+        VALUE _s,       // string
+        VALUE _t,       // string
+        VALUE _s_len,   // string length
+        VALUE _t_len,   // string length
+        VALUE _v0,      // score vector
+        VALUE _v1       // score vector
       )
       {
         char         *s     = (char *) StringValuePtr(_s);