added a_posteriori.m