mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-12 23:15:52 +08:00
fix: Various LGTM fixes
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user