git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1470
270642c3-0616-0410-b53a-bc976706d245
if (max > accMax_) accMax_ = max;
if (++i_ >= rank_) {
float accAvg (accSum_ / i_);
- float accDev (std::sqrt(accSumSq_ / i_ - accAvg*accAvg));
+ float accDev (std::max(0.0f,std::sqrt(accSumSq_ / i_ - accAvg*accAvg)));
StatisticsBase::enter(accMin_, accAvg, accMax_, accDev);
i_ = 0;
accMin_ = FLT_MAX;