Module: Fsrs::Scheduler::LearningState
- Included in:
- Fsrs::Scheduler
- Defined in:
- lib/fsrs/fsrs.rb
Overview
rubocop:disable Style/Documentation
Instance Method Summary collapse
Instance Method Details
#schedule_learning_relearning_state(s, now) ⇒ Object
336 337 338 339 340 341 |
# File 'lib/fsrs/fsrs.rb', line 336 def schedule_learning_relearning_state(s, now) hard_interval = 0 good_interval = next_interval(s.good.stability) easy_interval = [next_interval(s.easy.stability), good_interval + 1].max s.schedule(now, hard_interval, good_interval, easy_interval) end |