be.ac.ulg.montefiore.run.jahmm.io
Class OpdfGaussianReader
java.lang.Object
be.ac.ulg.montefiore.run.jahmm.io.OpdfReader<OpdfGaussian>
be.ac.ulg.montefiore.run.jahmm.io.OpdfGaussianReader
public class OpdfGaussianReader
- extends OpdfReader<OpdfGaussian>
This class implements a OpdfGaussian
reader. The syntax of the
distribution description is the following.
The description always begins with the keyword GaussianOPDF.
The next (resp. last) symbol is an opening (resp. closing) bracket.
Between the backets are two numbers separated by a space. The
first is the distribution's mean, the second the variance.
For example, reading GaussianOPDF [ .2 .3 ] returns a distribution
equivalent to new OpdfGaussian(.2, .3)
.
Method Summary |
OpdfGaussian |
read(java.io.StreamTokenizer st)
Reads an
Opdf out of a
StreamTokenizer . |
Methods inherited from class be.ac.ulg.montefiore.run.jahmm.io.OpdfReader |
read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpdfGaussianReader
public OpdfGaussianReader()
read
public OpdfGaussian read(java.io.StreamTokenizer st)
throws java.io.IOException,
FileFormatException
- Description copied from class:
OpdfReader
- Reads an
Opdf
out of a
StreamTokenizer
.
The stream tokenizer syntax table must be set according to
of HmmReader.initSyntaxTable(StreamTokenizer)
before the call to this method and reset to this state if
modified before it returns.
- Specified by:
read
in class OpdfReader<OpdfGaussian>
- Parameters:
st
- A stream tokenizer.
- Returns:
- An Opdf.
- Throws:
java.io.IOException
FileFormatException
Copyright © 2004,2005
Jean-Marc François.