Closed victorjatoba closed 7 years ago
private void updateProficiency(boolean answer) {
// TODO fill examinee with questions answered
IrtExaminee examinee = this.user.getIrtExaminee();
List<UserQuestionModel> userQuestionModels = this.userQuestionDAO.getUserQuestionModels();
byte[] responses = new byte[userQuestionModels.size()];
int i = 0;
for (UserQuestionModel userQuestionModel : userQuestionModels) {
responses[i++] = (userQuestionModel.getAnswer() == Boolean.TRUE) ? (byte) 1 : (byte) 0;
}
examinee.setResponseVector(responses);
examinee.maximumLikelihoodEstimate(Constants.thetaMin, Constants.thetaMax);
}
Update the examinee proficiency by MLE strategy.