Class: ActiveRecall::FSRS::Internal::Parameters
- Inherits:
-
Object
- Object
- ActiveRecall::FSRS::Internal::Parameters
- Defined in:
- lib/active_recall/algorithms/fsrs/internal.rb
Instance Attribute Summary collapse
-
#maximum_interval ⇒ Object
Returns the value of attribute maximum_interval.
-
#request_retention ⇒ Object
Returns the value of attribute request_retention.
-
#w ⇒ Object
Returns the value of attribute w.
Instance Method Summary collapse
-
#initialize ⇒ Parameters
constructor
A new instance of Parameters.
Constructor Details
#initialize ⇒ Parameters
Returns a new instance of Parameters.
198 199 200 201 202 203 204 205 |
# File 'lib/active_recall/algorithms/fsrs/internal.rb', line 198 def initialize @request_retention = 0.9 @maximum_interval = 36_500 @w = [ 0.4, 0.6, 2.4, 5.8, 4.93, 0.94, 0.86, 0.01, 1.49, 0.14, 0.94, 2.18, 0.05, 0.34, 1.26, 0.29, 2.61 ] end |
Instance Attribute Details
#maximum_interval ⇒ Object
Returns the value of attribute maximum_interval.
196 197 198 |
# File 'lib/active_recall/algorithms/fsrs/internal.rb', line 196 def maximum_interval @maximum_interval end |
#request_retention ⇒ Object
Returns the value of attribute request_retention.
196 197 198 |
# File 'lib/active_recall/algorithms/fsrs/internal.rb', line 196 def request_retention @request_retention end |
#w ⇒ Object
Returns the value of attribute w.
196 197 198 |
# File 'lib/active_recall/algorithms/fsrs/internal.rb', line 196 def w @w end |