From 4f5c936dd6dd11abba7ec83aa097f3030ce744a9 Mon Sep 17 00:00:00 2001 From: Thomas Hille Date: Wed, 8 Mar 2017 17:00:12 +0100 Subject: [PATCH] changed formulas for demising return --- app/models/proxy_exercise.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/proxy_exercise.rb b/app/models/proxy_exercise.rb index f35c5c39..8fed0fa2 100644 --- a/app/models/proxy_exercise.rb +++ b/app/models/proxy_exercise.rb @@ -210,7 +210,7 @@ class ProxyExercise < ActiveRecord::Base def tag_diminishing_return_function(count_tag, total_count_tag) total_count_tag += 1 # bonus exercise comes on top - return 0.8/(1+(Math::E**(-10/(0.5*total_count_tag)*(count_tag-0.5*total_count_tag))))+0.2 + return 1/(1+(Math::E**(-3/(0.5*total_count_tag)*(count_tag-0.5*total_count_tag)))) end def select_easiest_exercise(exercises)