mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Update sorting by R for FSRS 6 (#3949)
* Update sorting by R for FSRS 6 * Update sqlite.rs
This commit is contained in:
parent
a5778f3377
commit
9872645d5a
1 changed files with 2 additions and 4 deletions
|
@ -384,10 +384,8 @@ fn add_extract_fsrs_relative_retrievability(db: &Connection) -> rusqlite::Result
|
|||
.max(0.0001);
|
||||
|
||||
return Ok(Some(
|
||||
// power should be the reciprocal of the value of DECAY in FSRS-rs,
|
||||
// which is currently -0.5
|
||||
-(current_retrievability.powi(-2) - 1.)
|
||||
/ (desired_retrievability.powi(-2) - 1.),
|
||||
-(current_retrievability.powf(-1.0 / decay) - 1.)
|
||||
/ (desired_retrievability.powf(-1.0 / decay) - 1.),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue