Mercurial > hg > svcore
changeset 1073:d4212687520e
minor debug thing
author | Chris Cannam |
---|---|
date | Thu, 21 May 2015 16:38:07 +0100 |
parents | f4ad0bfceeb7 |
children | b792ea8243be |
files | base/LogRange.cpp |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/base/LogRange.cpp Thu May 14 14:04:41 2015 +0100 +++ b/base/LogRange.cpp Thu May 21 16:38:07 2015 +0100 @@ -26,8 +26,8 @@ if (min > max) std::swap(min, max); if (max == min) max = min + 1; -// SVDEBUG << "LogRange::mapRange: min = " << min << ", max = " << max << endl; - +// cerr << "LogRange::mapRange: min = " << min << ", max = " << max << endl; + if (min >= 0.f) { max = log10(max); // we know max != 0 @@ -35,7 +35,7 @@ if (min == 0.f) min = std::min(logthresh, max); else min = log10(min); -// SVDEBUG << "LogRange::mapRange: positive: min = " << min << ", max = " << max << endl; +// cerr << "LogRange::mapRange: positive: min = " << min << ", max = " << max << endl; } else if (max <= 0.f) { @@ -46,7 +46,7 @@ std::swap(min, max); -// SVDEBUG << "LogRange::mapRange: negative: min = " << min << ", max = " << max << endl; +// cerr << "LogRange::mapRange: negative: min = " << min << ", max = " << max << endl; } else { @@ -55,7 +55,7 @@ max = log10(std::max(max, -min)); min = std::min(logthresh, max); -// SVDEBUG << "LogRange::mapRange: spanning: min = " << min << ", max = " << max << endl; +// cerr << "LogRange::mapRange: spanning: min = " << min << ", max = " << max << endl; } if (min == max) min = max - 1;