From e84e10e71db5722cb742056b80e64b054bf4bfcc Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 17 Jan 2024 03:19:11 +0200 Subject: gnosis-algorithm-next-interval: Adjust for failure-factor - Make sure it's not above 0.8, unless user is using failure factor > 8 --- gnosis-algorithm.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gnosis-algorithm.el') diff --git a/gnosis-algorithm.el b/gnosis-algorithm.el index 1756e8e..596bc7c 100644 --- a/gnosis-algorithm.el +++ b/gnosis-algorithm.el @@ -152,8 +152,10 @@ Returns a list of: (INTERVAL N EF) where, (> fails-c 3)) ;; When fails-c is above 3, use 150% or 180% of ;; failure-factor depending on the value of total failed - ;; reviews - (* (* failure-factor (if (>= fails-t 10) 1.8 1.5)) last-interval)) + ;; reviews. It should not be above 0.8 + (* (max (min 0.8 (* failure-factor (if (>= fails-t 10) 1.8 1.5))) + failure-factor) + last-interval)) ;; For custom review sessions. ;; When successful-reviews-c is above 0, multiply its value ;; with ef -- cgit v1.2.3