calhoun.analysis.crf
Interface ModelManager
- All Superinterfaces:
- FeatureManager, FeatureManagerEdge, FeatureManagerEdgeExplicitLength, FeatureManagerNode, FeatureManagerNodeExplicitLength, java.io.Serializable
- All Known Implementing Classes:
- BeanModel, Interval13Model, Interval29Model, ZeroOrderManager, ZeroOrderModel
public interface ModelManager
- extends FeatureManagerEdge, FeatureManagerNode, FeatureManagerEdgeExplicitLength, FeatureManagerNodeExplicitLength
overall itnerface for an entire model. The model contains the hidden state defintions and transitions as well as all of the features.
|
Method Summary |
DenseBooleanMatrix2D |
getLegalTransitions()
returns a boolean matrix where each (row, column) entry contains true if the
model has a legal transition between state row and state column. |
int |
getNumStates()
the number of hidden states. |
int |
getStateIndex(java.lang.String name)
looks up a hidden state's index given it's human readable name. |
java.lang.String |
getStateName(int state)
looks up the human readable name of a hidden state given it's index. |
getNumStates
int getNumStates()
- the number of hidden states.
- Returns:
- the number of hidden states
getStateName
java.lang.String getStateName(int state)
- looks up the human readable name of a hidden state given it's index.
- Returns:
- string name of the state with this index.
getStateIndex
int getStateIndex(java.lang.String name)
- looks up a hidden state's index given it's human readable name.
- Returns:
- index of the state with this name.
getLegalTransitions
DenseBooleanMatrix2D getLegalTransitions()
- returns a boolean matrix where each
(row, column) entry contains true if the
model has a legal transition between state row and state column.
A ModelManager may safely return null if all transitions are legal.
- Returns:
- a boolean matrix containing the legal transitions.