https://123dok.net/document/z3dme519-exemplar-based-hidden-markov-model-framework-nonlinear-models.html