added a setLastAvg() method to report a 'substitute' min/avg/max if no real data...
[senf.git] / senf / Utils / StatisticAccumulator.hh
index 08ba344..f3b4946 100644 (file)
@@ -67,8 +67,12 @@ namespace senf {
         /**< This member reset all values. */
         void accumulate(T value);
         ///< Gather value to be accumulated.
-        /**< This method accumulate a value.
+        /**< This method accumulates a value.
              \param[in] value to be accumulated value*/
+        void setLastAvg(T value);
+        ///< If no real data was collected, this method specifies the min/avg/max value to be returned.
+        /**< This method specifies the the min/avg/max value to be returned if no real data was colelcted
+             \param[in] value to be returned*/
 
     public:
         T     min() const;