be.ac.ulg.montefiore.run.jahmm
Class ObservationInteger

java.lang.Object
  extended by be.ac.ulg.montefiore.run.jahmm.Observation
      extended by be.ac.ulg.montefiore.run.jahmm.ObservationInteger
All Implemented Interfaces:
CentroidFactory<ObservationInteger>

public class ObservationInteger
extends Observation
implements CentroidFactory<ObservationInteger>

This class holds an integer observation.


Field Summary
 int value
          The observation's value.
 
Constructor Summary
ObservationInteger(int value)
          An observation that can be described by an integer.
 
Method Summary
 Centroid<ObservationInteger> factor()
          Returns the centroid matching this observation.
 java.lang.String toString(java.text.NumberFormat numberFormat)
          Formats this observation using a number formatter.
 
Methods inherited from class be.ac.ulg.montefiore.run.jahmm.Observation
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public final int value
The observation's value.

Constructor Detail

ObservationInteger

public ObservationInteger(int value)
An observation that can be described by an integer.

Parameters:
value - The value of this observation.
Method Detail

factor

public Centroid<ObservationInteger> factor()
Returns the centroid matching this observation.

Specified by:
factor in interface CentroidFactory<ObservationInteger>
Returns:
The corresponding observation.

toString

public java.lang.String toString(java.text.NumberFormat numberFormat)
Description copied from class: Observation
Formats this observation using a number formatter.

Specified by:
toString in class Observation
Parameters:
numberFormat - A number formatter.
Returns:
A string describing this observation.


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