fix: Various LGTM fixes

This commit is contained in:
Panquesito7
2020-06-23 14:35:13 -05:00
parent 7393d88811
commit 0356a9cdf3
4 changed files with 11 additions and 11 deletions

View File

@@ -35,7 +35,7 @@ class stats_computer1 {
n++;
T tmp = x - K;
Ex += tmp;
Ex2 += tmp * tmp;
Ex2 += static_cast<double>(tmp) * tmp;
}
/** return sample mean computed till last sample */