|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HiddenMarkovModel
The HiddenMarkovModel interface provides a means
for definining the probability estimates and symbol table
underlying a hidden Markov model (HMM).
Probabilities may be retrieved by symbol identifier or by string,
and in either straight or log2 form. Hence
the class looks a little more complicated than it is, because there
are four variants of each method:
In addition, the method
stateSymbolTable() returns
the symbol table for states.
| Method Summary | |
|---|---|
double |
emitLog2Prob(int stateId,
CharSequence emission)
Return the log (base 2) of the emission estimate. |
double |
emitLog2Prob(String state,
CharSequence emission)
Returns the log (base 2) of the emission estimate. |
double |
emitProb(int stateId,
CharSequence emission)
Return an estimate of the likelihood of the state with the specified identifier to emit the specified string. |
double |
emitProb(String state,
CharSequence emission)
Returns an estimate the emission of the specified string by the state with the specified label. |
double |
endLog2Prob(int stateId)
Returns the log (base 2) of the end probability for the state with the specified identifier. |
double |
endLog2Prob(String state)
Returns the log (base 2) of the end probability for the specified state. |
double |
endProb(int stateId)
Returns the end probability for the state with the specified identifier. |
double |
endProb(String state)
Returns the end probability for the specified state. |
double |
startLog2Prob(int stateId)
Returns the log (base 2) of the start probability for the state with the specified identifier. |
double |
startLog2Prob(String state)
Returns the log (base 2) of the start probability for the specified state. |
double |
startProb(int stateId)
Returns the start probability for the state with the specified identifier. |
double |
startProb(String state)
Returns the start probability for the specified state. |
SymbolTable |
stateSymbolTable()
Return the symbol table for the states for this HMM. |
double |
transitLog2Prob(int sourceId,
int targetId)
Returns the log (base 2) of the transition estimate. |
double |
transitLog2Prob(String source,
String target)
Returns the log (base 2) estimate of a transition probability. |
double |
transitProb(int sourceId,
int targetId)
Return an estimate of the transition likelihood from the source state with the specified identifier to the target state with the specified identifier. |
double |
transitProb(String source,
String target)
Returns an estimate of a transition from the source state with the specified name to the target state with the specified label. |
| Method Detail |
|---|
SymbolTable stateSymbolTable()
double startProb(int stateId)
stateId - Identifier of state.
double startProb(String state)
state - HMM state.
double startLog2Prob(int stateId)
stateId - Identifier of state.
double startLog2Prob(String state)
state - HMM State.
double endProb(int stateId)
stateId - Identifier of state.
double endProb(String state)
state - HMM state.
double endLog2Prob(int stateId)
stateId - Identifier of state.
double endLog2Prob(String state)
state - HMM State.
double transitProb(int sourceId,
int targetId)
sourceId - Source state identifier.targetId - Target state identifier.
double transitLog2Prob(int sourceId,
int targetId)
transitProb(int,int) for more information.
sourceId - Source state identifier.targetId - Target state identifier.
double emitProb(int stateId,
CharSequence emission)
stateId - State identifier.emission - Character sequence emitted.
double emitLog2Prob(int stateId,
CharSequence emission)
emitProb(int,CharSequence) for more details.
stateId - State identifier.emission - Character sequence emitted.
double transitProb(String source,
String target)
source - Label of source state.target - Label of target state.
double transitLog2Prob(String source,
String target)
transitProb(String,String) for more information.
source - Label of source state.target - Label of target state.
double emitProb(String state,
CharSequence emission)
state - Label of state.emission - Character sequence emitted.
double emitLog2Prob(String state,
CharSequence emission)
emitProb(String,CharSequence) for more information.
state - Label of state.emission - Character sequence emitted.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||