Code for reproduce the figures in the paper: Analysis of the approximate EM for SSPP