Mercurial > hg > svcore
changeset 1074:b792ea8243be
Merge
author | Chris Cannam |
---|---|
date | Thu, 21 May 2015 16:38:52 +0100 |
parents | d4212687520e (diff) 882d448c8a6d (current diff) |
children | c1b522cfd1ff b6092700a73e |
files | |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/base/LogRange.cpp Fri May 15 09:15:57 2015 +0100 +++ b/base/LogRange.cpp Thu May 21 16:38:52 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;