Liking cljdoc? Tell your friends :D

spaced-repetition.sm5


calculate-new-optimal-factorclj/s

(calculate-new-optimal-factor interval-used quality used-of old-of fraction)

Takes the following arguments:

  • interval-used, the last interval used for the item in question

  • quality of the repetition response;

  • used-of, the optimal factor used in calculation of the last interval used for the item in question;

  • old-of, the previous value of the OF entry corresponding to the relevant repetition number and the E-Factor of the item;

  • fraction, a number belonging to the range (0,1) determining the rate of modifications (the greater it is the faster the changes of the OF matrix).

Returns the newly calculated value of the considered entry of the OF matrix.

Intermediate values involved:

  • mod5, value proposed for the modifier in case of q=5;

  • mod2, value proposed for the modifier in case of q=2;

  • modifier,number determining how many times the OF value will increase or decrease.

Takes the following arguments:

 - interval-used, the last interval used for the item in question

 - quality of the repetition response;

 - used-of, the optimal factor used in calculation of the last interval used
   for the item in question;

 - old-of, the previous value of the OF entry corresponding to the relevant
   repetition number and the E-Factor of the item;

 - fraction, a number belonging to the range (0,1) determining the rate of
   modifications (the greater it is the faster the changes of the OF matrix).

Returns the newly calculated value of the considered entry of the OF matrix.

Intermediate values involved:

- mod5, value proposed for the modifier in case of q=5;

- mod2, value proposed for the modifier in case of q=2;

- modifier,number determining how many times the OF value will increase or
  decrease.
sourceraw docstring

default-efclj/s

source

dispersal-mclj/s

(dispersal-m)
source

ef-bucketclj/s

(ef-bucket ef)
source

initial-optimal-factorclj/s

(initial-optimal-factor n ef)
source

inter-repetition-intervalclj/s

(inter-repetition-interval n ef ofm last-interval)
source

interpolate-with-efclj/s

(interpolate-with-ef ef low high)
source

learn-fractionclj/s

source

min-efclj/s

source

modify-e-factorclj/s

(modify-e-factor ef quality)
source

near-optimal-intervalclj/s

(near-optimal-interval previously-used-interval optimal-interval)
source

next-stateclj/s

(next-state quality)
(next-state quality of-matrix)
(next-state quality of-matrix [last-n last-ef last-interval used-of])

Calculate the next time an item should be reviewed by a user.

quality [user-state [item-state]] -> {:days-to-next ... :new-user-state ... :new-item-state ...}

[XXX: find link explaining quality of recall.]

Users and items (questions to learn) are represented by opaque data structures. You pass these structures to this function and get new versions of them returned in a mapping. The first time a given item is reviewed by a given user you can omit the item-state', and the first time a given user reviews any item at all you can omit theuser state'.

In addition to rescheduling the question for the new-interval, any questions in this session with quality lower than 3 should be reviewed cyclically until quality becomes 4 or 5. You should do those repetitions on your own without calling this function.

Calculate the next time an item should be reviewed by a user.

quality [user-state [item-state]] -> {:days-to-next ...
                                      :new-user-state ...
                                      :new-item-state ...}

[XXX: find link explaining quality of recall.]

Users and items (questions to learn) are represented by opaque data
structures. You pass these structures to this function and get new versions of
them returned in a mapping. The first time a given item is reviewed by a given
user you can omit the `item-state', and the first time a given user reviews
any item at all you can omit the `user state'.

In addition to rescheduling the question for the new-interval, any questions
in this session with quality lower than 3 should be reviewed cyclically until
quality becomes 4 or 5.  You should do those repetitions on your own without
calling this function.
sourceraw docstring

ofm-refclj/s

(ofm-ref ofm n ef)
source

ofm-setclj/s

(ofm-set ofm n ef of)
source

propagateclj/s

(propagate {[src-ef src-of] :last-set} dest-n dest-ef)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close