From 2fd222f5f950fd791e7344b2e667fedc7dbbecc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sat, 20 Jul 2019 20:42:37 +0200 Subject: Again adapt standard settings for sample selection. --- src/sample_selection.cc | 6 +++--- src/settings.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/sample_selection.cc b/src/sample_selection.cc index 6fe4b63..2e08e9b 100644 --- a/src/sample_selection.cc +++ b/src/sample_selection.cc @@ -70,10 +70,10 @@ const Sample* SampleSelection::get(level_t level, std::size_t pos) float close_opt = 0.; float diverse_opt = 0.; - // Note the magic value of "4" in front of f_close + // Note the magic values in front of the settings factors. const float f_close = 4.*settings.sample_selection_f_close.load(); - const float f_diverse = settings.sample_selection_f_diverse.load(); - const float f_random = settings.sample_selection_f_random.load(); + const float f_diverse = (1./2.)*settings.sample_selection_f_diverse.load(); + const float f_random = (1./3.)*settings.sample_selection_f_random.load(); float const power_range = powerlist.getMaxPower() - powerlist.getMinPower(); diff --git a/src/settings.h b/src/settings.h index b967f91..64d27b7 100644 --- a/src/settings.h +++ b/src/settings.h @@ -76,8 +76,8 @@ struct Settings static float constexpr velocity_modifier_weight_default = 0.25f; static float constexpr velocity_stddev_default = 1.0f; static float constexpr sample_selection_f_close_default = .5f; - static float constexpr sample_selection_f_diverse_default = .1f; - static float constexpr sample_selection_f_random_default = 0.03f; + static float constexpr sample_selection_f_diverse_default = .2f; + static float constexpr sample_selection_f_random_default = .1f; Atomic velocity_modifier_falloff{velocity_modifier_falloff_default}; Atomic velocity_modifier_weight{velocity_modifier_weight_default}; Atomic velocity_stddev{velocity_stddev_default}; -- cgit v1.2.3