aima.core.probability.hmm.impl.HMM Maven / Gradle / Ivy
package aima.core.probability.hmm.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import aima.core.probability.CategoricalDistribution;
import aima.core.probability.RandomVariable;
import aima.core.probability.domain.FiniteDomain;
import aima.core.probability.hmm.HiddenMarkovModel;
import aima.core.probability.proposition.AssignmentProposition;
import aima.core.probability.util.ProbabilityTable;
import aima.core.util.Util;
import aima.core.util.math.Matrix;
/**
* Default implementation of the HiddenMarkovModel interface.
*
* @author Ciaran O'Reilly
* @author Ravi Mohan
*/
public class HMM implements HiddenMarkovModel {
private RandomVariable stateVariable = null;
private FiniteDomain stateVariableDomain = null;
private Matrix transitionModel = null;
private Map