Hidden-state-Bayesian-learning Sample R/Cpp code of a simulated Bayesian reasoner learning a spatial target through auditory feedback.