comparison src/EM.cpp @ 102:19f6832fdc8a bqvec

Ooh, that's a trappy one
author Chris Cannam
date Tue, 06 May 2014 15:12:45 +0100
parents 8259193b3b16
children e6b4235fa2ea
comparison
equal deleted inserted replaced
101:2290f73923f7 102:19f6832fdc8a
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, factor, m_binCount); 156 v_add_with_gain(m_estimate, w, m_binCount, factor);
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) {