| 91 | } |
| 92 | |
| 93 | double TDeviationCalculator::GetStdDev() const { |
| 94 | const double sumWeights = GetSumWeights(); |
| 95 | if (!sumWeights) { |
| 96 | return 0.; |
| 97 | } |
| 98 | return sqrt(GetDeviation() / sumWeights); |
| 99 | } |
| 100 | |
| 101 | double TDeviationCalculator::GetSumWeights() const { |
| 102 | return MeanCalculator.GetSumWeights(); |
no test coverage detected