Crate fsrs

Source

Structs§

CMRRTargetFn
Card
CombinedProgressState
ComputeParametersInput
Input parameters for computing FSRS parameters
FSRS
This is the main structure provided by this crate. It can be used for both parameter training, and for reviews.
FSRSItem
Stores a list of reviews for a card, in chronological order. Each FSRSItem corresponds to a single review, but contains the previous reviews of the card as well, after the first one. When used during review, the last item should include the correct delta_t, but the provided rating is ignored as all four ratings are returned by .next_states()
FSRSReview
ItemProgress
ItemState
MemoryState
ModelEvaluation
NextStates
PostSchedulingFn
Function type for post scheduling operations that takes interval, maximum interval, current day index, due counts per day, and a random number generator, and returns a new interval.
ReviewPriorityFn
Function type for review priority calculation that takes a card reference and returns a priority value (lower value means higher priority)
RevlogEntry
SimulationResult
SimulatorConfig

Enums§

FSRSError
RevlogReviewKind

Constants§

FSRS5_DEFAULT_DECAY
FSRS6_DEFAULT_DECAY

Statics§

DEFAULT_PARAMETERS

Functions§

current_retrievability
expected_workload
extract_simulator_config
simulate

Type Aliases§

Result