adapt-learn
v1.0.0
Published
Adaptative learning simple abstraction
Downloads
4
Readme
#Index
Classes
Functions
#class: Learn Members
##new Learn() Used to meta learn based on score.
#add(obj, score) Method to add to series, meta information and given score.
Params
- obj
Object
- meta information - score
Number
- score number
Returns: Learn - self - self instance
#getSeries()
Get series inserted sorted by score and given value.
Returns: Array
- self.series
#getNextOf(n)
Get next position in series based on a number of score
Params
- n
Number
- an number
Returns: Object
- out or {Null}
#getOf(n)
Get actual position in series based on number of score
Params
- n
Number
- an number
Returns: Object
- out or {Null}
#getPreviousOf(n)
Get previous position in series based on a number
Params
- n
Number
- an number
Returns: Object
- out or {Null}
#adapt(currentScore, flag)
Adapt position position in serie based on params
Params
- currentScore
Number
- an number - flag
Boolean
- or {Null} - an flag
Returns: Object
- out or {Null}