Project
ProfileInitializer.h
Go to the documentation of this file.
1 #ifndef PROFILEINITIALIZER_H
2 #define PROFILEINITIALIZER_H
3 
10 #include "../app.h"
11 #include "../types/AlternativesPerformance.h"
12 #include "../types/Categories.h"
13 #include "../types/MRSortModel.h"
14 #include "../types/Perf.h"
15 #include "../types/Profiles.h"
16 
29 public:
38 
47 
53 
60 
68 
75  std::vector<float> categoryFrequency();
76 
87  std::vector<Perf> getProfilePerformanceCandidates(const Criterion &crit,
88  const Category &cat,
89  const int nbCategories);
90 
111  float weightedProbability(const Perf perfAlt, const Criterion &crit,
112  const Category &catAbove, const Category &catBelow,
113  const int nbCategories,
114  const std::vector<float> &catFrequency,
115  std::vector<Perf> &candidates, float delta = 0.001);
116 
125  std::vector<Perf>
127  const std::vector<float> &catFre);
128 
136 
137 private:
138  Config &conf;
139  AlternativesPerformance &altPerformance_;
140 };
141 
142 #endif
Dataset datastructure.
Definition: AlternativesPerformance.h:35
Set of Category datastructure.
Definition: Categories.h:28
Category datastructure.
Definition: Category.h:20
Criterion datastructure.
Definition: Criterion.h:21
Datastructure of the model to learn.
Definition: MRSortModel.h:37
Perf (single performance) data structure.
Definition: Perf.h:22
Profile initializer heuristic.
Definition: ProfileInitializer.h:28
ProfileInitializer(Config &config, AlternativesPerformance &altPerfs)
std::vector< Perf > initializeProfilePerformance(const Criterion &crit, Categories &categories, const std::vector< float > &catFre)
std::vector< float > categoryFrequency()
void initializeProfiles(MRSortModel &model)
void setAlternativesPerformance(AlternativesPerformance &newAltPerfs)
AlternativesPerformance getAlternativesPerformance() const
float weightedProbability(const Perf perfAlt, const Criterion &crit, const Category &catAbove, const Category &catBelow, const int nbCategories, const std::vector< float > &catFrequency, std::vector< Perf > &candidates, float delta=0.001)
std::vector< Perf > getProfilePerformanceCandidates(const Criterion &crit, const Category &cat, const int nbCategories)
ProfileInitializer(const ProfileInitializer &profInit)
High level configuration of the app.
Definition: config.h:20