diff options
author | nkmakarov <nkmakarov@yandex-team.ru> | 2022-02-10 16:49:06 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:06 +0300 |
commit | 324348a37ed08cf66897faefb0ec4bebfe7804e1 (patch) | |
tree | 8736a3afd6953763bf57544746bf1b8b5404dec6 /library/cpp/linear_regression/welford.h | |
parent | 5eddcf9f19515e4be1e49ba1482d920e007a07d1 (diff) | |
download | ydb-324348a37ed08cf66897faefb0ec4bebfe7804e1.tar.gz |
Restoring authorship annotation for <nkmakarov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/linear_regression/welford.h')
-rw-r--r-- | library/cpp/linear_regression/welford.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/linear_regression/welford.h b/library/cpp/linear_regression/welford.h index ee865d6693..0706ac2cfa 100644 --- a/library/cpp/linear_regression/welford.h +++ b/library/cpp/linear_regression/welford.h @@ -18,7 +18,7 @@ public: void Remove(const double value, const double weight = 1.); double GetMean() const; double GetSumWeights() const; - void Reset(); + void Reset(); bool operator<(const TMeanCalculator& other) const { return Mean < other.Mean; @@ -51,8 +51,8 @@ public: double GetCovariation() const; double GetSumWeights() const; - - void Reset(); + + void Reset(); }; // accurately computes (w_1 * x_1 * x_1 + w_2 * x_2 * x_2 + ... + w_n * x_n * x_n) / (w_1 + w_2 + ... + w_n) @@ -72,6 +72,6 @@ public: double GetStdDev() const; double GetSumWeights() const; - - void Reset(); + + void Reset(); }; |