pub struct Configuration {Show 16 fields
pub learning_phase_stage_delay_seconds: Vec<u16>,
pub learning_phase_easy_skip_stages: u16,
pub learning_phase_easy_may_skip_last_stage: bool,
pub learning_phase_delay_jitter: Jitter,
pub reviewing_phase_initial_delay_seconds: u32,
pub reviewing_phase_initial_ease_factor: f64,
pub reviewing_phase_min_ease_factor: f64,
pub reviewing_phase_max_ease_factor: f64,
pub reviewing_phase_initial_ease_max_easy_count: u16,
pub reviewing_phase_initial_ease_max_hard_count: u16,
pub reviewing_phase_ease_factor_easy_update: f64,
pub reviewing_phase_ease_factor_hard_update: f64,
pub reviewing_phase_ease_factor_again_update: f64,
pub reviewing_phase_easy_one_time_interval_bonus: f64,
pub reviewing_phase_hard_fixed_interval_factor: Option<f64>,
pub reviewing_phase_delay_jitter: Jitter,
}Expand description
The configuration of the algorithm.
Fields§
§learning_phase_stage_delay_seconds: Vec<u16>The delays between repetitions in the initial learning phase. These are given as seconds.
Warning: This vector must contain at least one value.
Example:
Setting learning_stages to [10, 60] causes the item to be repeated 10 seconds after the initial repetition, and another 60 seconds after that.
learning_phase_easy_skip_stages: u16The amount of stages skipped if the user chooses easy in the learning phase. A value of zero resembles the behaviour of a normal result.
learning_phase_easy_may_skip_last_stage: boolIf true, if the user chooses easy in the learning phase and this would skip past the last stage, the item directly enters the reviewing phase. If false, then the item will always enter the last stage, and only after successfully repeating again the item may enter the reviewing phase.
learning_phase_delay_jitter: JitterA random variation of the delay during the learning phase.
reviewing_phase_initial_delay_seconds: u32The initial delay in the reviewing phase in seconds.
reviewing_phase_initial_ease_factor: f64The initial ease factor used in the reviewing phase.
reviewing_phase_min_ease_factor: f64The minimum ease factor used in the reviewing phase.
reviewing_phase_max_ease_factor: f64The maximum ease factor used in the reviewing phase.
reviewing_phase_initial_ease_max_easy_count: u16The maximum number of easy results from the learning phase to be applied to the initial ease factor when entering the reviewing phase.
reviewing_phase_initial_ease_max_hard_count: u16The maximum number of hard results from the learning phase to be applied to the initial ease factor when entering the reviewing phase.
reviewing_phase_ease_factor_easy_update: f64The factor applied to the ease factor on an easy result.
reviewing_phase_ease_factor_hard_update: f64The factor applied to the ease factor on a hard result.
reviewing_phase_ease_factor_again_update: f64The factor applied to the ease factor on an again result.
reviewing_phase_easy_one_time_interval_bonus: f64A factor applied to the length of the learning interval on an easy answer, additionally to the ease factor. This factor is applied only one an easy answer, and does not affect the update of the ease factor.
reviewing_phase_hard_fixed_interval_factor: Option<f64>If set, the learning interval is updated by this exact factor on an hard answer, without accounting for the ease factor. The ease factor is still updated in the background.
reviewing_phase_delay_jitter: JitterA random variation of the delay during the reviewing phase.
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more