Complete Tex output with Holm test

This commit is contained in:
2024-09-03 12:43:50 +02:00
parent 4dbd76df55
commit 6ae2b2182a
8 changed files with 115 additions and 67 deletions

View File

@@ -61,6 +61,10 @@ namespace platform {
{
return "results.tex";
}
static std::string tex_post_hoc()
{
return "post_hoc.tex";
}
};
}
#endif

View File

@@ -36,7 +36,7 @@ namespace platform {
}
return result;
}
double compute_std(std::vector<double> values, double mean)
inline double compute_std(std::vector<double> values, double mean)
{
// Compute standard devation of the values
double sum = 0.0;
@@ -46,5 +46,25 @@ namespace platform {
double variance = sum / values.size();
return std::sqrt(variance);
}
inline std::string get_date()
{
time_t rawtime;
tm* timeinfo;
time(&rawtime);
timeinfo = std::localtime(&rawtime);
std::ostringstream oss;
oss << std::put_time(timeinfo, "%Y-%m-%d");
return oss.str();
}
inline std::string get_time()
{
time_t rawtime;
tm* timeinfo;
time(&rawtime);
timeinfo = std::localtime(&rawtime);
std::ostringstream oss;
oss << std::put_time(timeinfo, "%H:%M:%S");
return oss.str();
}
}
#endif