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

Compare-all: Positions start at 0 (until nb_clones-1)

We should only consider positions < nb_clones, not <=.
parent 0e6ff254
......@@ -107,7 +107,7 @@ SimilarityMatrix compare_windows(WindowsStorage &windowsStorage, const Cost theC
string win1 = it1->first;
//We compute & save only clones it the position is lower than the number of clones we want
if (positionIt1 > nb_clones) break;
if (positionIt1 >= nb_clones) break;
//Process of the second junctions
for (list<pair <junction, int> >:: const_iterator it2 = sortedList.begin();
......@@ -118,7 +118,7 @@ SimilarityMatrix compare_windows(WindowsStorage &windowsStorage, const Cost theC
//We compute only distances when first position is lower than the second
if (positionIt1 < positionIt2) {
if (positionIt2 <= nb_clones) {
if (positionIt2 < nb_clones) {
//Compute all the windows, globally
DynProg dp = DynProg(win1, win2, DynProg::Global, theCost);
......
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