edu.cmu.sphinx.linguist.acoustic.tiedstate
Class SenoneHMMState

java.lang.Object
  extended byedu.cmu.sphinx.linguist.acoustic.tiedstate.SenoneHMMState
All Implemented Interfaces:
HMMState

public class SenoneHMMState
extends java.lang.Object
implements HMMState

Represents a single state in an HMM


Method Summary
 float[] calculateComponentScore(Data feature)
          Gets the scores for each mixture component in this HMM state
 boolean equals(java.lang.Object other)
          Determines if two HMMStates are equal
 HMM getHMM()
          Gets the HMM associated with this state
 float getScore(Data feature)
          Gets the score for this HMM state
 Senone getSenone()
          Gets the senone for this HMM state
 int getState()
          Gets the state
 HMMStateArc[] getSuccessors()
          Retrieves the state of successor states for this state
 int hashCode()
          Returns the hashcode for this state
 boolean isEmitting()
          Determines if this HMMState is an emittting state
 boolean isExitState()
          Determines if this state is an exit state of the HMM
 java.lang.String toString()
          returns a string represntation of this object
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getHMM

public HMM getHMM()
Gets the HMM associated with this state

Specified by:
getHMM in interface HMMState
Returns:
the HMM

getState

public int getState()
Gets the state

Specified by:
getState in interface HMMState
Returns:
the state

getScore

public float getScore(Data feature)
Gets the score for this HMM state

Specified by:
getScore in interface HMMState
Parameters:
feature - the feature to be scored
Returns:
the acoustic score for this state.

calculateComponentScore

public float[] calculateComponentScore(Data feature)
Gets the scores for each mixture component in this HMM state

Parameters:
feature - the feature to be scored
Returns:
the acoustic scores for the components of this state.

getSenone

public Senone getSenone()
Gets the senone for this HMM state

Returns:
the senone for this state.

equals

public boolean equals(java.lang.Object other)
Determines if two HMMStates are equal

Parameters:
other - the state to compare this one to
Returns:
true if the states are equal

hashCode

public int hashCode()
Returns the hashcode for this state

Returns:
the hashcode

isEmitting

public final boolean isEmitting()
Determines if this HMMState is an emittting state

Specified by:
isEmitting in interface HMMState
Returns:
true if the state is an emitting state

getSuccessors

public HMMStateArc[] getSuccessors()
Retrieves the state of successor states for this state

Specified by:
getSuccessors in interface HMMState
Returns:
the set of successor state arcs

isExitState

public boolean isExitState()
Determines if this state is an exit state of the HMM

Specified by:
isExitState in interface HMMState
Returns:
true if the state is an exit state

toString

public java.lang.String toString()
returns a string represntation of this object

Returns:
a string representation