Data synthesis follows the generative recipe of Section 14.2.1
and is implemnted by software/mrhmm_synthesize.m.
The following code creates Event_length data samples from
MR-HMM parameters hparm:
Figure 14.8 shows an example of a training data (top)
and synthesized data (bottom).
Top: training data from class 1. Bottom:
fully synthetic data from trained MR-HMM parameters.