Commit bddb0936 authored by Mikaël Salson's avatar Mikaël Salson

cluster-junctions.cpp: Don't assume a match is 1

parent 7675f014
...@@ -65,7 +65,7 @@ void comp_matrix::compare(ostream &out, Cost cluster_cost) ...@@ -65,7 +65,7 @@ void comp_matrix::compare(ostream &out, Cost cluster_cost)
j2=it1->first; j2=it1->first;
DynProg dp = DynProg(j1, j2, DynProg::Local, compareCost); DynProg dp = DynProg(j1, j2, DynProg::Local, compareCost);
int score=dp.compute(); int score=dp.compute();
int distance = max(j1.size(), j2.size())-score; int distance = max(j1.size(), j2.size()) * compareCost.match - score;
m[c2][c1]=distance; m[c2][c1]=distance;
m[c1][c2]=distance; m[c1][c2]=distance;
c1++; c1++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment