summaryrefslogtreecommitdiffstats
path: root/flashcards-project/src/flashcards/scheduler_brutal.py
diff options
context:
space:
mode:
authorAndreeaRadoescu <randreea23@gmail.com>2024-10-23 19:24:53 +0200
committerAndreeaRadoescu <randreea23@gmail.com>2024-10-23 19:24:53 +0200
commite289af0c914058490949ace441aada8182de0126 (patch)
tree702f304f1158fb715505f2c3de360358e42f4400 /flashcards-project/src/flashcards/scheduler_brutal.py
parent875014ebcb8898e6161e7e2d09b127fc4fa595a2 (diff)
parent19aad3fdc3b10312743ff0399a5ad472e6573cad (diff)
Merge branch 'master' into feature/addGUI
Diffstat (limited to 'flashcards-project/src/flashcards/scheduler_brutal.py')
-rw-r--r--flashcards-project/src/flashcards/scheduler_brutal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/flashcards-project/src/flashcards/scheduler_brutal.py b/flashcards-project/src/flashcards/scheduler_brutal.py
index f2a00c2..f98729c 100644
--- a/flashcards-project/src/flashcards/scheduler_brutal.py
+++ b/flashcards-project/src/flashcards/scheduler_brutal.py
@@ -59,7 +59,7 @@ class SchedulerBrutal(Scheduler):
"""
Exposure index is a measure of how much and how recently a card has been shown
"""
- return sum([i + 1 for i, h in enumerate(history) if h is not None])
+ return sum([pow(i + 1, 2) for i, h in enumerate(history) if h is not None])
def _schedule(self, size: int) -> list[str]:
weights = range(10, 10 + HISTORY_DEPTH)