FsrsCalculator

class FsrsCalculator(val fsrs: Fsrs = Fsrs())

FsrsCalculator is responsible for calculating the next state of a flashcard based on the FSRS algorithm.

Constructors

Link copied to clipboard
constructor(fsrs: Fsrs = Fsrs())

Properties

Link copied to clipboard
val fsrs: Fsrs

An instance of the FSRS class that contains the FSRS algorithm logic.

Functions

Link copied to clipboard
fun review(state: FsrsState?, rating: FsrsRating, elapsedDays: Double, sameDay: Boolean): FsrsState

Reviews a flashcard and calculates its new state based on the provided parameters.