diff options
author | André Nusser <andre.nusser@googlemail.com> | 2019-05-12 22:20:35 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2019-05-12 22:21:42 +0200 |
commit | cf0b8b4568bd7df489426cb2bd88e69a2f73d6a2 (patch) | |
tree | 078158478ee0c3629ea3962bda233993006fc9e0 /src/sample_selection.h | |
parent | f0a28851afb5fdb21431494633c86c01947ed0db (diff) |
Delete old sample selection algorithm and do slight adaption.
The slight adaption was the one deva and I talked about on IRC.
Diffstat (limited to 'src/sample_selection.h')
-rw-r--r-- | src/sample_selection.h | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/src/sample_selection.h b/src/sample_selection.h index 2134cdd..8da4e0d 100644 --- a/src/sample_selection.h +++ b/src/sample_selection.h @@ -34,30 +34,18 @@ class PowerList; class Random; struct Settings; -enum class SelectionAlg -{ - Old, - Objective, -}; - class SampleSelection { +public: + SampleSelection(Settings& settings, Random& rand, const PowerList& powerlist); + + void finalise(); + const Sample* get(level_t level, std::size_t pos); + private: Settings& settings; Random& rand; const PowerList& powerlist; - Sample* lastsample; std::vector<std::size_t> last; - - SelectionAlg alg; - const Sample* getOld(level_t level, std::size_t pos); - const Sample* getObjective(level_t level, std::size_t pos); - -public: - SampleSelection(Settings& settings, Random& rand, const PowerList& powerlist); - - void setSelectionAlg(SelectionAlg alg); - void finalise(); - const Sample* get(level_t level, std::size_t pos); }; |