added a setLastAvg() method to report a 'substitute' min/avg/max if no real data...
[senf.git] / senf / Utils / StatisticAccumulator.ct
index 9e5d106..282d6e9 100644 (file)
@@ -61,6 +61,12 @@ prefix_ float senf::StatisticAccumulator<T>::stddev()
 }
 
 template <class T>
+prefix_ void senf::StatisticAccumulator<T>::setLastAvg( T value)
+{
+    last_avg_ = value;        
+}
+
+template <class T>
 prefix_ void senf::StatisticAccumulator<T>::accumulate( T value)
 {
     if (count_ == 0) {