Mercurial > hg > silvet
comparison src/EM.cpp @ 111:9b299b087dd4 bqvec-openmp
Fixed order of with_gain function in bqvec, updating correspondingly
author | Chris Cannam |
---|---|
date | Wed, 07 May 2014 08:55:44 +0100 |
parents | e6b4235fa2ea |
children | 2169e7a448c5 |
comparison
equal
deleted
inserted
replaced
107:16d6e2f6f159 | 111:9b299b087dd4 |
---|---|
151 const double source = m_sources[i][n]; | 151 const double source = m_sources[i][n]; |
152 for (int f = 0; f < m_shiftCount; ++f) { | 152 for (int f = 0; f < m_shiftCount; ++f) { |
153 const double *w = templateFor(i, n, f); | 153 const double *w = templateFor(i, n, f); |
154 const double shift = m_shifts[f][n]; | 154 const double shift = m_shifts[f][n]; |
155 const double factor = pitch * source * shift; | 155 const double factor = pitch * source * shift; |
156 v_add_with_gain(m_estimate, w, m_binCount, factor); | 156 v_add_with_gain(m_estimate, w, factor, m_binCount); |
157 } | 157 } |
158 } | 158 } |
159 } | 159 } |
160 | 160 |
161 for (int i = 0; i < m_binCount; ++i) { | 161 for (int i = 0; i < m_binCount; ++i) { |