aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/linear_regression/welford.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/linear_regression/welford.h
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/linear_regression/welford.h')
-rw-r--r--library/cpp/linear_regression/welford.h10
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..89b5ce39ea 100644
--- a/library/cpp/linear_regression/welford.h
+++ b/library/cpp/linear_regression/welford.h
@@ -9,7 +9,7 @@ class TMeanCalculator {
private:
double Mean = 0.;
TKahanAccumulator<double> SumWeights;
-
+
public:
Y_SAVELOAD_DEFINE(Mean, SumWeights);
@@ -20,11 +20,11 @@ public:
double GetSumWeights() const;
void Reset();
- bool operator<(const TMeanCalculator& other) const {
+ bool operator<(const TMeanCalculator& other) const {
return Mean < other.Mean;
}
- bool operator>(const TMeanCalculator& other) const {
+ bool operator>(const TMeanCalculator& other) const {
return Mean > other.Mean;
}
};
@@ -38,7 +38,7 @@ private:
double SecondValueMean = 0.;
TKahanAccumulator<double> SumWeights;
-
+
public:
Y_SAVELOAD_DEFINE(Covariation, FirstValueMean, SecondValueMean, SumWeights);
@@ -60,7 +60,7 @@ class TDeviationCalculator {
private:
double Deviation = 0.;
TMeanCalculator MeanCalculator;
-
+
public:
Y_SAVELOAD_DEFINE(Deviation, MeanCalculator);