edu.cmu.sphinx.linguist.flat
Class SentenceHMMStateArc

java.lang.Object
  extended byedu.cmu.sphinx.linguist.flat.SentenceHMMStateArc
All Implemented Interfaces:
SearchStateArc

public class SentenceHMMStateArc
extends java.lang.Object
implements SearchStateArc

Represents a transition in a sentence HMM. Each transition is described by the next state and the associated acoustic and language probability for the transition. All probabilities are in the LogMath log domain


Constructor Summary
SentenceHMMStateArc(SentenceHMMState nextState, float logAcousticProbability, float logLanguageProbability, float logInsertionProbability)
          Creates a SentenceHMMStateArc
 
Method Summary
 boolean equals(java.lang.Object o)
          Determines if the given object is equal to this object
 float getAcousticProbability()
          Retrieves the acoustic transition probablility for this transition.
 float getInsertionProbability()
          Retrieves the insertaion probability for this transition
 float getLanguageProbability()
          Retrieves the language transition probability for this transition
 SentenceHMMState getNextState()
          For backwards compatibility Returns the next state as a SentenceHMSMtate
 float getProbability()
          Gets the composite probability of entering this state
 SearchState getState()
          Retrieves the next state
 int hashCode()
          Returns a hashCode for this object
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SentenceHMMStateArc

public SentenceHMMStateArc(SentenceHMMState nextState,
                           float logAcousticProbability,
                           float logLanguageProbability,
                           float logInsertionProbability)
Creates a SentenceHMMStateArc

Parameters:
nextState - the next state
logAcousticProbability - the log acoustic probability
logLanguageProbability - the log language probability
logInsertionProbability - the log insertion probability
Method Detail

equals

public boolean equals(java.lang.Object o)
Determines if the given object is equal to this object

Parameters:
o - the object to compare to
Returns:
true if the objects are equal

hashCode

public int hashCode()
Returns a hashCode for this object

Returns:
the hashCode

getState

public SearchState getState()
Retrieves the next state

Specified by:
getState in interface SearchStateArc
Returns:
the next state

getNextState

public SentenceHMMState getNextState()
For backwards compatibility Returns the next state as a SentenceHMSMtate

Returns:
the next state

getAcousticProbability

public float getAcousticProbability()
Retrieves the acoustic transition probablility for this transition.

Specified by:
getAcousticProbability in interface SearchStateArc
Returns:
the acoustic transition probability in the logmath log domain

getLanguageProbability

public float getLanguageProbability()
Retrieves the language transition probability for this transition

Specified by:
getLanguageProbability in interface SearchStateArc
Returns:
the language transition probability in the logmath log domain

getInsertionProbability

public float getInsertionProbability()
Retrieves the insertaion probability for this transition

Specified by:
getInsertionProbability in interface SearchStateArc
Returns:
the insertion probability in the logmath log domain

getProbability

public float getProbability()
Gets the composite probability of entering this state

Specified by:
getProbability in interface SearchStateArc
Returns:
the log probability