stabilityOnRecall

fun stabilityOnRecall(difficulty: Double, stability: Double, retrievability: Double, rating: FsrsRating): Double

Calculates the next stability for long-term reviews based on the current difficulty, stability, retrievability, and rating. In case the rating is AGAIN, the stabilityOnLapse function should be used instead.

Return

The next stability value, which indicates how long until the item should be reviewed again.

Parameters

difficulty

The current difficulty of the item. (1.0 to 10.0)

stability

The current stability of the item. (in days)

retrievability

The current retrievability of the item. (0.0 to 1.0)

rating

The rating given by the user after reviewing the item.