Mercurial > hg > match-vamp
diff src/Matcher.cpp @ 96:6b91e40b2c04 refactors
Tidy
author | Chris Cannam |
---|---|
date | Thu, 27 Nov 2014 16:50:14 +0000 |
parents | 13be4158251d |
children | 6636aca831c0 |
line wrap: on
line diff
--- a/src/Matcher.cpp Thu Nov 27 16:05:24 2014 +0000 +++ b/src/Matcher.cpp Thu Nov 27 16:50:14 2014 +0000 @@ -377,16 +377,16 @@ } void -Matcher::updateValue(int i, int j, Advance dir, double value, float dMN) +Matcher::updateValue(int i, int j, Advance dir, double value, float distance) { - float weighted = dMN; + float weighted = distance; if (dir == AdvanceBoth) { weighted *= m_params.diagonalWeight; } if (m_firstPM) { - m_distance[i][j - m_first[i]] = dMN; + setDistance(i, j, distance); setPathCost(i, j, dir, value + weighted); } else { @@ -406,7 +406,7 @@ m_otherMatcher->m_advance[j].resize(idx * 2, AdvanceNone); } - m_otherMatcher->m_distance[j][idx] = dMN; + m_otherMatcher->setDistance(j, i, distance); m_otherMatcher->setPathCost(j, i, dir, value + weighted); } }