public class NestedModel extends AbstractModel
Nested model graph
Copyright: Copyright (c) 2005
Company: IST, Drexel University
name, numLabels| Constructor and Description |
|---|
NestedModel(int labelNum,
String specs) |
| Modifier and Type | Method and Description |
|---|---|
EdgeIterator |
getEdgeIterator() |
int |
getEdgeNum() |
int |
getEndState(int i)
Gets the index-th ending state.
|
int |
getEndStateNum() |
int |
getLabel(int stateNum)
Gets the label of the state.
|
int |
getStartState(int i)
Gets the index-th starting state.
|
int |
getStartStateNum() |
int |
getStateNum()
Gets the number of states.
|
EdgeIterator |
innerEdgeIterator() |
boolean |
isEndState(int i)
Tests if the i-th state is an ending state
|
boolean |
isStartState(int i)
Tests if the i-th state is a starting state
|
static void |
main(String[] args) |
boolean |
mapLabelToState(DataSequence data)
Maps labels to states.
|
boolean |
mapStateToLabel(DataSequence dataSeq)
Maps states to labels.
|
getLabelNum, getMarkovOrder, getNewModelGraph, getOriginalLabelNum, mapLabelToState, printGraphpublic static void main(String[] args)
public EdgeIterator getEdgeIterator()
public EdgeIterator innerEdgeIterator()
public int getStateNum()
ModelGraphgetStateNum in interface ModelGraphgetStateNum in class AbstractModelpublic int getEdgeNum()
public int getLabel(int stateNum)
ModelGraphstateNum - the index of the statepublic int getStartStateNum()
public int getEndStateNum()
public int getStartState(int i)
ModelGraphi - the index-th starting statepublic int getEndState(int i)
ModelGraphi - the index-th ending statepublic boolean isEndState(int i)
ModelGraphi - the i-th statepublic boolean isStartState(int i)
ModelGraphi - the i-th statepublic boolean mapStateToLabel(DataSequence dataSeq)
ModelGraphmapStateToLabel in interface ModelGraphmapStateToLabel in class AbstractModeldataSeq - the sequence for mappingpublic boolean mapLabelToState(DataSequence data)
ModelGraphmapLabelToState in interface ModelGraphmapLabelToState in class AbstractModeldata - the sequence for mappingCopyright © 2018 JULIE Lab, Germany. All rights reserved.