CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/Common/Math/Statistics.cpp
Views: 1401
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