|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.jahmm.io.ObservationReader<ObservationVector>
be.ac.ulg.montefiore.run.jahmm.io.ObservationVectorReader
public class ObservationVectorReader
Reads an ObservationVector
up to (and including) a semi-colon.
The format of this observation is an opening bracket ([) followed by the components of the vector separated by spaces or tabs. Each component is a number (following the format [+-]?[0123456789]+[.]?[0123456789]*).
For example, reading
[76 45. -2.23];creates an observation such as the one generated by
new ObservationVector(new double[] {76., 45., -2.23});
Constructor Summary | |
---|---|
ObservationVectorReader()
Constructs a reader of ObservationVector . |
|
ObservationVectorReader(int dimension)
Constructs a reader of ObservationVector . |
Method Summary | |
---|---|
ObservationVector |
read(java.io.StreamTokenizer st)
An ObservationInteger reader, as explained in
ObservationReader . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObservationVectorReader()
ObservationVector
.
public ObservationVectorReader(int dimension)
ObservationVector
.
Verifies the dimension of the observations read.
dimension
- The dimension of each observation.Method Detail |
---|
public ObservationVector read(java.io.StreamTokenizer st) throws java.io.IOException, FileFormatException
ObservationInteger
reader, as explained in
ObservationReader
.
read
in class ObservationReader<ObservationVector>
st
- A stream tokenizer.
ObservationInteger
.
java.io.IOException
FileFormatException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |