be.ac.ulg.montefiore.run.jahmm.io
Class OpdfGaussianMixtureReader

java.lang.Object
  extended by be.ac.ulg.montefiore.run.jahmm.io.OpdfReader<OpdfGaussianMixture>
      extended by be.ac.ulg.montefiore.run.jahmm.io.OpdfGaussianMixtureReader

public class OpdfGaussianMixtureReader
extends OpdfReader<OpdfGaussianMixture>

This class implements a OpdfGaussian reader. The syntax of the distribution description is the following.

The description always begins with the keyword GaussianMxitureOPDF. Three series of numbers between brackets and separated by a space follow; numbers are separated by a space. The first the gaussians mean values. The second is the gaussians variance. The last sequence of number gives each gaussian proportion.

For example, reading
GaussianMixtureOPDF [ [ 1.2 2. ] [ .1 .9 ] [ .4 .6 ] ] returns a distribution equivalent to
new OpdfGaussianMixture(new double[] { 1.2, 2. }, new double[] { .1, .9 }, new double[] { .4, .6 }).


Constructor Summary
OpdfGaussianMixtureReader()
           
 
Method Summary
 OpdfGaussianMixture 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
 

Constructor Detail

OpdfGaussianMixtureReader

public OpdfGaussianMixtureReader()
Method Detail

read

public OpdfGaussianMixture 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<OpdfGaussianMixture>
Parameters:
st - A stream tokenizer.
Returns:
An Opdf.
Throws:
java.io.IOException
FileFormatException


Copyright © 2004,2005 Jean-Marc François.