Mercurial > hg > silvet
comparison src/EM.cpp @ 37:947996aac974
Calculate column sums, etc
author | Chris Cannam |
---|---|
date | Fri, 04 Apr 2014 18:18:18 +0100 |
parents | 74b77a4d6552 |
children | 5164bccf3064 |
comparison
equal
deleted
inserted
replaced
36:74b77a4d6552 | 37:947996aac974 |
---|---|
175 } | 175 } |
176 } | 176 } |
177 cerr << " sounding: "; | 177 cerr << " sounding: "; |
178 for (int i = 0; i < (int)sounding.size(); ++i) { | 178 for (int i = 0; i < (int)sounding.size(); ++i) { |
179 cerr << sounding[i] << " "; | 179 cerr << sounding[i] << " "; |
180 int maxj = -1; | |
181 double maxs = 0.0; | |
182 for (int j = 0; j < m_instruments; ++j) { | |
183 if (j == 0 || m_sources[j][sounding[i]] > maxs) { | |
184 maxj = j; | |
185 maxs = m_sources[j][sounding[i]]; | |
186 } | |
187 } | |
188 cerr << silvet_templates[maxj].name << " "; | |
180 } | 189 } |
181 cerr << endl; | 190 cerr << endl; |
182 } | 191 } |
183 | 192 |