#ifndef BEST_RESULTS_TEX_H #define BEST_RESULTS_TEX_H #include #include #include #include "common/Paths.h" #include "Statistics.h" namespace platform { using json = nlohmann::ordered_json; class BestResultsTex { public: BestResultsTex(bool dataset_name = true) : dataset_name(dataset_name) {}; ~BestResultsTex() = default; void results_header(const std::vector& models, const std::string& date, bool index); void results_body(const std::vector& datasets, json& table, bool index); void results_footer(const std::map>& totals, const std::string& best_model); void holm_test(struct HolmResult& holmResult, const std::string& date); private: bool dataset_name; void openTexFile(const std::string& name); std::ofstream handler; std::vector models; }; } #endif