diff base/LogRange.h @ 478:1405f4a2caf3

* Add use-log-scale estimator. Not quite right yet; the model doesn't actually have any data in it yet at the point where we want to make this decision * Update changelog
author Chris Cannam
date Tue, 11 Nov 2008 13:54:47 +0000
parents 2268963dabd1
children 06f13a3b9e9e
line wrap: on
line diff
--- a/base/LogRange.h	Tue Nov 11 09:41:45 2008 +0000
+++ b/base/LogRange.h	Tue Nov 11 13:54:47 2008 +0000
@@ -16,6 +16,8 @@
 #ifndef _LOG_RANGE_H_
 #define _LOG_RANGE_H_
 
+#include <vector>
+
 class LogRange
 {
 public:
@@ -39,6 +41,14 @@
      * means taking the value'th power of ten.
      */
     static float unmap(float value);
+
+    /**
+     * Estimate whether a set of values would be more properly shown
+     * using a logarithmic than a linear scale.  This is only ever
+     * going to be a rough guess.
+     */
+    static bool useLogScale(std::vector<float> values);
+
 };
 
 #endif