X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FStatisticAccumulator.ct;h=282d6e91f5ae3e6d1b31f0fe24c1720118ae02b3;hb=bc566051d5a894c8ba0f9a70f3552306bc33e1a1;hp=9e5d106de941ac9780e049a0794fb24f8487c002;hpb=f989ecdff86b18cdfca6d65c15ae297c117028e0;p=senf.git diff --git a/senf/Utils/StatisticAccumulator.ct b/senf/Utils/StatisticAccumulator.ct index 9e5d106..282d6e9 100644 --- a/senf/Utils/StatisticAccumulator.ct +++ b/senf/Utils/StatisticAccumulator.ct @@ -61,6 +61,12 @@ prefix_ float senf::StatisticAccumulator::stddev() } template +prefix_ void senf::StatisticAccumulator::setLastAvg( T value) +{ + last_avg_ = value; +} + +template prefix_ void senf::StatisticAccumulator::accumulate( T value) { if (count_ == 0) {