Bayesian Models, Dynamical Sytems and the Brain