| 14 | } |
| 15 | |
| 16 | void TMeanCalculator::Remove(const double value, const double weight /*= 1.*/) { |
| 17 | SumWeights -= weight; |
| 18 | if (SumWeights.Get()) { |
| 19 | Mean -= weight * (value - Mean) / SumWeights.Get(); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | double TMeanCalculator::GetMean() const { |
| 24 | return Mean; |
no test coverage detected