SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.hmm
Class HmmTrainByEM

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.hmm.HmmTrainByEM

public class HmmTrainByEM
extends java.lang.Object

This class trains a HMM model by observations using the train algorithm.


Constructor Summary
HmmTrainByEM()
           
 
Method Summary
 HiddenMarkovModel train(HiddenMarkovModel model0, int[] observations)
          Construct a trained (discrete) hidden Markov model using the train algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HmmTrainByEM

public HmmTrainByEM()
Method Detail

train

public HiddenMarkovModel train(HiddenMarkovModel model0,
                               int[] observations)
Construct a trained (discrete) hidden Markov model using the train algorithm.

Parameters:
model0 - the original hidden Markov model
observations - an integer array of observation symbols (length = T); each symbol should be a positive integer less than or equal to M (the number of district observation symbols per state)
Returns:
a trained (discrete) hidden Markov model

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.