@@ -7,7 +7,7 @@ module Stateful
77
88using DocStringExtensions
99
10- using FittedItemBanks: AbstractItemBank, ResponseType, ItemResponse, resp
10+ using FittedItemBanks: AbstractItemBank, ResponseType, ItemResponse, resp_vec
1111using .. Aggregators: TrackedResponses, Aggregators
1212using .. CatConfig: CatLoopConfig, CatRules
1313using .. Responses: BareResponses, Response, Responses
@@ -135,13 +135,14 @@ function item_bank_size end
135135
136136"""
137137```julia
138- $(FUNCTIONNAME) (config::StatefulCat, index::IndexT, response::ResponseT, ability::AbilityT) -> Float
138+ $(FUNCTIONNAME) (config::StatefulCat, index::IndexT, ability::AbilityT) -> AbstractVector{ Float}
139139````
140140
141- Return the probability of a `response` to item at `index` for someone with
142- a certain `ability` according to the IRT model backing the CAT.
141+ Return the vector of probability of different responses to item at
142+ `index` for someone with a certain `ability` according to the IRT
143+ model backing the CAT.
143144"""
144- function item_response_function end
145+ function item_response_functions end
145146
146147# # Running the CAT
147148function Sim. run_cat (cat_config:: CatLoopConfig{RulesT} ,
@@ -243,10 +244,10 @@ function item_bank_size(config::StatefulCatConfig)
243244 return length (config. tracked_responses[]. item_bank)
244245end
245246
246- function item_response_function (config:: StatefulCatConfig , index, response , ability)
247+ function item_response_functions (config:: StatefulCatConfig , index, ability)
247248 item_bank = config. tracked_responses[]. item_bank
248249 item_response = ItemResponse (item_bank, index)
249- return resp (item_response, response , ability)
250+ return resp_vec (item_response, ability)
250251end
251252
252253# # TODO : Implementation for MaterializedDecisionTree
0 commit comments