Add constant references to Statistics

This commit is contained in:
2023-10-04 13:40:45 +02:00
parent c4ae3fe429
commit 55e742438f
5 changed files with 27 additions and 11 deletions

View File

@@ -2,6 +2,7 @@
#define BESTRESULTS_EXCEL_H
#include "ExcelFile.h"
#include <vector>
#include <map>
#include <nlohmann/json.hpp>
using namespace std;
@@ -11,7 +12,7 @@ namespace platform {
class BestResultsExcel : ExcelFile {
public:
BestResultsExcel(string score, vector<string> models, vector<string> datasets, json table, bool friedman, double significance);
BestResultsExcel(const string& score, const vector<string>& models, const vector<string>& datasets, const json& table, bool friedman, double significance);
~BestResultsExcel();
void build();
string getFileName();
@@ -21,14 +22,15 @@ namespace platform {
void footer();
void formatColumns();
const string fileName = "BestResults.xlsx";
string score;
vector<string> models;
vector<string> datasets;
json table;
const string& score;
const vector<string>& models;
const vector<string>& datasets;
const json& table;
bool friedman;
double significance;
int modelNameSize = 12; // Min size of the column
int datasetNameSize = 25; // Min size of the column
// map<string, map<string, float>>& ranksModels;
};
}
#endif //BESTRESULTS_EXCEL_H