Exploring raycasters and possibly make a little "doom like" game based on it.
 
 
 
 
 
 
raycaster/stats.cpp

10 lines
258 B

#include "stats.hpp"
#include <fmt/core.h>
void Stats::dump(std::string msg)
{
fmt::println("{}: sum: {}, sumsq: {}, n: {}, "
"min: {}, max: {}, mean: {}, stddev: {}",
msg, sum, sumsq, n, min, max, mean(),
stddev());
}