1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Optimize calculation of standard deviation.

This commit is contained in:
Bartosz Taudul
2019-03-14 01:23:37 +01:00
parent f57cac9042
commit a0299cc63a
3 changed files with 6 additions and 7 deletions
+1
View File
@@ -86,6 +86,7 @@ private:
int64_t min = std::numeric_limits<int64_t>::max();
int64_t max = std::numeric_limits<int64_t>::min();
int64_t total = 0;
double sumSq = 0;
int64_t selfMin = std::numeric_limits<int64_t>::max();
int64_t selfMax = std::numeric_limits<int64_t>::min();
int64_t selfTotal = 0;