R-implementation of a Markov-Modulated Poisson Process for unsupervised event detection.