Fsrs class
FSRS-5 scheduler.
Reference: https://github.com/open-spaced-repetition/fsrs4anki/wiki/The-Algorithm
Constructors
Properties
Methods
-
calculate(
{required FsrsState state, required FsrsRating rating, required double elapsedDays, double targetRetention = 0.9}) → FsrsResult -
Schedule a card given its current
state, the user'srating, and the number ofelapsedDayssince last review.targetRetentioncontrols the desired recall probability (default 0.9). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
migrateFromSm2(
{required double easinessFactor, required int intervalDays, required int repetitions}) → FsrsState - Approximate FSRS state from SM-2 parameters for cold-start migration.
-
retrievability(
double elapsedDays, double stability) → double -
Compute retrievability (probability of recall) at
elapsedDaysgiven currentstability. Public so callers can estimate knowledge decay.
Constants
-
defaultParameters
→ const List<
double>