This is the code for the paper Hidden Markov modeling of single particle diffusion with stochastic tethering.
See the notebook example.ipynb for an example of usage.
For more detailed information, see the docstring of the function em_viterbi_optimization in the module em_algorithm.py.