MCPcopy Create free account
hub / github.com/catboost/catboost / GetStdDev

Method GetStdDev

library/cpp/linear_regression/welford.cpp:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

Y_UNIT_TESTFunction · 0.80
SpeedBenchmarkFunction · 0.80

Calls 1

sqrtFunction · 0.50

Tested by

no test coverage detected