Continue TeX output

This commit is contained in:
2024-09-02 20:30:47 +02:00
parent 4545f76667
commit 4dbd76df55
6 changed files with 143 additions and 71 deletions

22
src/best/BestResultsTex.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef BEST_RESULTS_TEX_H
#define BEST_RESULTS_TEX_H
#include <map>
#include <vector>
#include <nlohmann/json.hpp>
#include "common/Paths.h"
namespace platform {
using json = nlohmann::ordered_json;
class BestResultsTex {
public:
BestResultsTex(const std::vector<std::string>& models, const std::string& date);
~BestResultsTex() = default;
void results_header();
void results_body(const std::vector<std::string>& datasets, json& table);
void results_footer(const std::map<std::string, std::vector<double>>& totals, const std::string& best_model);
private:
std::FILE* output_tex;
std::vector<std::string> models;
std::string date;
};
}
#endif