diff options
author | Thanos Apollo <[email protected]> | 2024-02-06 12:14:55 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-02-06 12:14:55 +0200 |
commit | 2d7752dfb299e069850a382d115fa65cf5660fbf (patch) | |
tree | b5b3996305ab8d7b52da6f8dcc78730c7776061b | |
parent | 481576c1e018e0e3b9169b4e6806f13dcf24db48 (diff) |
gnosis-algorith: Adjust for second initial interval
-rw-r--r-- | gnosis-algorithm.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gnosis-algorithm.el b/gnosis-algorithm.el index c10d9c9..02b9a87 100644 --- a/gnosis-algorithm.el +++ b/gnosis-algorithm.el @@ -114,8 +114,8 @@ Returns a list of: (INTERVAL N EF) where, - Next review date in (yyyy mm dd) format. - REVIEW-NUM: Incremented by 1. - EF : Modified based on the recall success for the item." - (cl-assert (and (>= success 0) - (<= success 1))) + (cl-assert (or (= success 0) + (= success 1))) ;; Check if gnosis-algorithm-ff is lower than 1 & is total-ef above 1.3 (cond ((>= gnosis-algorithm-ff 1) (error "Value of `gnosis-algorithm-ff' must be lower than 1")) @@ -134,8 +134,7 @@ Returns a list of: (INTERVAL N EF) where, (car initial-interval)) ;; Second successful review -> second interval ((and (= successful-reviews 1) - (= success 1) - (= fails-c 0)) + (= success 1)) (cadr initial-interval)) ;; When successful-reviews-c is above 3, use 150% or 180% ;; of ef depending on the value of successful-reviews |