|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--dragon.ml.seqmodel.data.BasicDataset
Basic data structure of a set of sequence data
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor Summary | |
BasicDataset(int originalLabelNum,
int markovOrder)
|
|
| Method Summary | |
boolean |
add(DataSequence seq)
|
Dataset |
copy()
|
int |
getLabelNum()
Gets the number of unique labels. |
int |
getMarkovOrder()
Gets the order of the markov chain |
int |
getOriginalLabelNum()
Gets the number of original unique labels no matter what order the markov chain is. |
boolean |
hasNext()
Tests if the next sequence exists |
DataSequence |
next()
Reads out the next sequence |
int |
size()
Gets the number of sequences in the dataset |
void |
startScan()
Moves the pointer to the position before the first sequence. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicDataset(int originalLabelNum,
int markovOrder)
| Method Detail |
public Dataset copy()
public int size()
Dataset
size in interface Datasetpublic void startScan()
Dataset
startScan in interface Datasetpublic boolean hasNext()
Dataset
hasNext in interface Datasetpublic DataSequence next()
Dataset
next in interface Datasetpublic boolean add(DataSequence seq)
public int getLabelNum()
Dataset
getLabelNum in interface Datasetpublic int getOriginalLabelNum()
Dataset
getOriginalLabelNum in interface Datasetpublic int getMarkovOrder()
Dataset
getMarkovOrder in interface Dataset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||