|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.acoustic.tiedstate.SenoneHMM
Represents a hidden-markov-model. An HMM consists of a unit (context dependent or independent), a transition matrix from state to state, and a sequence of senones associated with each state. This representation of an HMM is a specialized left-to-right markov model. No backward transitions are allowed.
Constructor Summary | |
SenoneHMM(Unit unit,
SenoneSequence senoneSequence,
float[][] transitionMatrix,
HMMPosition position)
Constructs an HMM |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
Unit |
getBaseUnit()
Gets the base unit associated with this HMM |
HMMState |
getInitialState()
Gets the initial states (with probabilities) for this HMM |
int |
getOrder()
Returns the order of the HMM |
HMMPosition |
getPosition()
Retrieves the position of this HMM. |
SenoneSequence |
getSenoneSequence()
Returns the SenoneSequence associated with this HMM |
HMMState |
getState(int which)
Retrieves the hmm state |
float[][] |
getTransitionMatrix()
Returns the transition matrix that determines the state transition probabilities for the matrix. |
float |
getTransitionProbability(int stateFrom,
int stateTo)
Returns the transition probability between two states. |
Unit |
getUnit()
Gets the unit associated with this HMM |
int |
hashCode()
|
boolean |
isComposite()
Determines if this HMM is a composite HMM |
boolean |
isContextDependent()
Determines if this HMM corresponds to a context dependent unit |
boolean |
isFiller()
Determines if this HMM represents a filler unit. |
java.lang.String |
toString()
Returns the string representation of this object |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SenoneHMM(Unit unit, SenoneSequence senoneSequence, float[][] transitionMatrix, HMMPosition position)
unit
- the unit for this HMMsenoneSequence
- the sequence of senones for this HMMtransitionMatrix
- the state transition matrixposition
- the position associated with this HMMMethod Detail |
public Unit getUnit()
getUnit
in interface HMM
public Unit getBaseUnit()
getBaseUnit
in interface HMM
public HMMState getState(int which)
getState
in interface HMM
which
- the state of interestpublic int getOrder()
getOrder
in interface HMM
public SenoneSequence getSenoneSequence()
public boolean isComposite()
public float[][] getTransitionMatrix()
public float getTransitionProbability(int stateFrom, int stateTo)
stateFrom
- the index of the state this transition goes fromstateTo
- the index of the state this transition goes to
public HMMPosition getPosition()
getPosition
in interface HMM
public boolean isFiller()
public boolean isContextDependent()
public HMMState getInitialState()
getInitialState
in interface HMM
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |