HiddenMarkovModel learntHmm = buildDiscInitHMM();
MarkovGenerator mg = new MarkovGenerator(hmm);
MLSequenceSet training = mg.generateSequences(200,100);
TrainBaumWelch bwl = new TrainBaumWelch(learntHmm,training);
KullbackLeiblerDistanceCalculator klc =
new KullbackLeiblerDistanceCalculator();
bwl.iteration(5);
learntHmm = (HiddenMarkovModel)bwl.getMethod();
double e = klc.distance(learntHmm, hmm);
Assert.assertTrue(e<0.01);
}