Bayesian and variational methods for discontinuity detection: theory overview and performance comparison