Skip to content

Commit

Permalink
replace sym with dist in leaforder
Browse files Browse the repository at this point in the history
  • Loading branch information
jdfekete committed Apr 27, 2015
1 parent 6e02e88 commit 3a8558d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions reorder.v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -1597,9 +1597,9 @@ reorder.leafOrder = function() {
var w_max = order(w, i, Ks[k]);
for (var m = 0; m < Ls.length; m++) {
var x_max = order(x, Ls[m], j);
var sim = w_max[0] + distanceMatrix[Ks[k]][Ls[m]] + x_max[0];
if (sim < max) {
max = sim;
var dist = w_max[0] + distanceMatrix[Ks[k]][Ls[m]] + x_max[0];
if (dist < max) {
max = dist;
optimal_order = w_max[1].concat(x_max[1]);
}
}
Expand Down
Loading

0 comments on commit 3a8558d

Please sign in to comment.