| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
FSRS.Types
Contents
Description
The vocabulary shared by the whole package: the four grades a reviewer can give a card, and the two-variable memory state FSRS tracks for it.
Synopsis
- data Rating
- allRatings :: [Rating]
- ratingToInt :: Rating -> Int
- ratingFromInt :: Int -> Maybe Rating
- data MemoryState = MemoryState {}
- type Stability = Double
- type Difficulty = Double
- type Retrievability = Double
- type Days = Double
Ratings
How well the card was recalled. The Enum instance counts from 0; the
FSRS papers and reference implementations number the ratings from 1, which
is what ratingToInt gives you.
ratingFromInt :: Int -> Maybe Rating Source #
Inverse of ratingToInt. Nothing outside 1..4.
Memory state
data MemoryState Source #
Everything FSRS remembers about a card.
Constructors
| MemoryState | |
Fields | |
Instances
| Read MemoryState Source # | |
Defined in FSRS.Types Methods readsPrec :: Int -> ReadS MemoryState # readList :: ReadS [MemoryState] # readPrec :: ReadPrec MemoryState # readListPrec :: ReadPrec [MemoryState] # | |
| Show MemoryState Source # | |
Defined in FSRS.Types Methods showsPrec :: Int -> MemoryState -> ShowS # show :: MemoryState -> String # showList :: [MemoryState] -> ShowS # | |
| Eq MemoryState Source # | |
Defined in FSRS.Types | |
| Ord MemoryState Source # | |
Defined in FSRS.Types Methods compare :: MemoryState -> MemoryState -> Ordering # (<) :: MemoryState -> MemoryState -> Bool # (<=) :: MemoryState -> MemoryState -> Bool # (>) :: MemoryState -> MemoryState -> Bool # (>=) :: MemoryState -> MemoryState -> Bool # max :: MemoryState -> MemoryState -> MemoryState # min :: MemoryState -> MemoryState -> MemoryState # | |
Type synonyms
type Stability = Double Source #
Memory half-life in days: the larger it is, the slower the card is forgotten. In FSRS-7 stability is a genuine continuous quantity — sub-day values are meaningful and are what the model uses for same-day reviews.
type Difficulty = Double Source #
How hard the card is for this reviewer, on a [1, 10] scale.
type Retrievability = Double Source #
Probability of recall, in (0, 1].