nextDifficulty

fun nextDifficulty(difficulty: Double, rating: FsrsRating): Double

Calculates the next stability based on the current stability, difficulty, and rating.

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)

rating

The rating given by the user after reviewing the item.