Constrained inference in sparse coding reproduces contextual effects and predicts laminar neural dynamics. - Federica Capparelli; Klaus Pawelzik; Udo Ernst (PLoS Comput. Biol., 2019)