Update sorting by R for FSRS 6 (#3949)

* Update sorting by R for FSRS 6

* Update sqlite.rs
This commit is contained in:
user1823 2025-04-26 07:35:38 +05:30 committed by GitHub
parent a5778f3377
commit 9872645d5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.),
));
}
}