public class SenoneHMM extends java.lang.Object implements HMM
Constructor and Description |
---|
SenoneHMM(Unit unit,
SenoneSequence senoneSequence,
float[][] transitionMatrix,
HMMPosition position)
Constructs an HMM
|
Modifier and Type | Method and Description |
---|---|
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
|
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 HMMpublic Unit getUnit()
public Unit getBaseUnit()
getBaseUnit
in interface HMM
public HMMState getState(int which)
public int getOrder()
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 topublic HMMPosition getPosition()
getPosition
in interface HMM
public boolean isFiller()
public boolean isContextDependent()
public HMMState getInitialState()
getInitialState
in interface HMM
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object