Mercurial > hg > silvet
comparison src/Silvet.cpp @ 49:9b17bbd16a5f
Use supplied pitch ranges, plus subrepo update
author | Chris Cannam |
---|---|
date | Mon, 07 Apr 2014 16:21:57 +0100 |
parents | d7f1c10f4e1d |
children | ce1d88759557 782ca0d9ff3e |
comparison
equal
deleted
inserted
replaced
46:d7f1c10f4e1d | 49:9b17bbd16a5f |
---|---|
346 | 346 |
347 double sum = 0.0; | 347 double sum = 0.0; |
348 for (int j = 0; j < processingHeight; ++j) { | 348 for (int j = 0; j < processingHeight; ++j) { |
349 sum += filtered[i][j]; | 349 sum += filtered[i][j]; |
350 } | 350 } |
351 cerr << "sum = " << sum << endl; | |
352 | 351 |
353 if (sum < 1e-5) continue; | 352 if (sum < 1e-5) continue; |
354 | 353 |
355 EM em; | 354 EM em; |
356 for (int j = 0; j < iterations; ++j) { | 355 for (int j = 0; j < iterations; ++j) { |