changeset 351:9b16a35cf8d1

change log2 to xlog2 for portability
author hauberg
date Mon, 06 Oct 2008 11:40:16 +0000
parents f8c6b6fa1217
children 4ca0cea0e940
files src/__spatial_filtering__.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/__spatial_filtering__.cc
+++ b/src/__spatial_filtering__.cc
@@ -197,7 +197,7 @@
     {
       const double p = hist (i);
       if (p > 0)
-        entropy -= p * log2 (p);
+        entropy -= p * xlog2 (p);
     }
 
   return entropy;