Constructors
constructor
new Cat ( destructuredParam ? ) : Cat
Returns Cat
Properties
Private
_n Items
_n Items : number
Private
Readonly
_resps
_resps : ( 0 | 1 ) []
Private
Readonly
_rng
_rng : PRNG
Private
_se Measurement
_se Measurement : number
Private
_theta
_theta : number
item Select
item Select : string
max Theta
max Theta : number
min Theta
min Theta : number
n Start Items
n Start Items : number
start Select
start Select : string
Accessors
n Items
get nItems( ) : number
Returns number
resps
get resps( ) : ( 0 | 1 ) []
Returns ( 0 | 1 ) []
se Measurement
get seMeasurement( ) : number
Returns number
theta
get theta( ) : number
Returns number
Methods
Private
calculateSE
calculateSE ( ) : void
Returns void
Private
estimate AbilityEAP
estimate AbilityEAP ( ) : number
Returns number
Private
estimate AbilityMLE
estimate AbilityMLE ( ) : any
Returns any
find Next Item
find Next Item ( stimuli , itemSelect ? , deepCopy ? ) : { nextStimulus : Stimulus ; remainingStimuli : Stimulus [] ; } | { nextStimulus : { difficulty : number ; fisherInformation : number ; } ; remainingStimuli : { difficulty : number ; fisherInformation : number ; } [] ; }
Parameters
itemSelect : string = ...
deepCopy : boolean = true
Returns { nextStimulus : Stimulus ; remainingStimuli : Stimulus [] ; } | { nextStimulus : { difficulty : number ; fisherInformation : number ; } ; remainingStimuli : { difficulty : number ; fisherInformation : number ; } [] ; }
Private
likelihood
likelihood ( theta ) : number
Returns number
Private
neg Likelihood
neg Likelihood ( thetaArray ) : number
Returns number
Private
random Integer
random Integer ( min , max ) : number
Returns number
random integer within the range
Private
selectorMFI
selectorMFI ( arr ) : { nextStimulus : { difficulty : number ; fisherInformation : number ; } ; remainingStimuli : { difficulty : number ; fisherInformation : number ; } [] ; }
Returns { nextStimulus : { difficulty : number ; fisherInformation : number ; } ; remainingStimuli : { difficulty : number ; fisherInformation : number ; } [] ; }
next Stimulus : { difficulty : number ; fisherInformation : number ; }
difficulty : number
fisher Information : number
remaining Stimuli : { difficulty : number ; fisherInformation : number ; } []
update Ability Estimate
update Ability Estimate ( zeta , answer , method ? ) : void
Parameters
answer : 0 | 1 | ( 0 | 1 ) []
method : string = ...
Returns void
Static
Private
validate Item Select
validate Item Select ( itemSelect ) : string
Returns string
Static
Private
validate Method
validate Method ( method ) : string
Returns string
Static
Private
validate Start Select
validate Start Select ( startSelect ) : string
Returns string
Create a Cat object. This expects an single object parameter with the following keys