Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FUZZ_RANGES = []FuzzRange{ {Start: 2.5, End: 7.0, Factor: 0.15}, {Start: 7.0, End: 20.0, Factor: 0.1}, {Start: 20.0, End: math.Inf(1), Factor: 0.05}, }
Functions ¶
Types ¶
type Card ¶
type Card struct {
Due time.Time `json:"Due"`
Stability float64 `json:"Stability"`
Difficulty float64 `json:"Difficulty"`
ElapsedDays uint64 `json:"ElapsedDays"`
ScheduledDays uint64 `json:"ScheduledDays"`
Reps uint64 `json:"Reps"`
Lapses uint64 `json:"Lapses"`
State State `json:"State"`
LastReview time.Time `json:"LastReview"`
}
type FSRS ¶
type FSRS struct {
Parameters
}
func NewFSRS ¶
func NewFSRS(param Parameters) *FSRS
func (*FSRS) GetRetrievability ¶ added in v3.2.0
type Parameters ¶
type Parameters struct {
RequestRetention float64 `json:"RequestRetention"`
MaximumInterval float64 `json:"MaximumInterval"`
W Weights `json:"Weights"`
Decay float64 `json:"Decay"`
Factor float64 `json:"Factor"`
EnableShortTerm bool `json:"EnableShortTerm"`
EnableFuzz bool `json:"EnableFuzz"`
// contains filtered or unexported fields
}
func DefaultParam ¶
func DefaultParam() Parameters
func (*Parameters) ApplyFuzz ¶ added in v3.1.0
func (p *Parameters) ApplyFuzz(ivl float64, elapsedDays float64, enableFuzz bool) float64
func (*Parameters) NewBasicScheduler ¶
func (p *Parameters) NewBasicScheduler(card Card, now time.Time) *Scheduler
func (*Parameters) NewLongTermScheduler ¶
func (p *Parameters) NewLongTermScheduler(card Card, now time.Time) *Scheduler
type RecordLog ¶
type RecordLog map[Rating]SchedulingInfo
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func (*Scheduler) Review ¶
func (s *Scheduler) Review(grade Rating) SchedulingInfo
type SchedulingInfo ¶
Click to show internal directories.
Click to hide internal directories.