C++ class for active learning of psychometric function parameters