Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/Common/Math/Statistics.cpp
3186 views
1
#include <cstdio>
2
3
#include "Common/Math/Statistics.h"
4
5
void SimpleStat::Format(char *buffer, size_t sz) {
6
if (min_ == INFINITY) {
7
snprintf(buffer, sz, "%s: N/A\n", name_);
8
} else {
9
snprintf(buffer, sz, "%s: %0.2f (%0.2f..%0.2f, avg %0.2f)\n", name_, value_, min_, max_, smoothed_);
10
}
11
}
12
13