Add constant references to Statistics
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user