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

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

public class ObservationReal
extends Observation
implements CentroidFactory<ObservationReal>

This class implements observations made of a real value.


Field Summary
 double value
          The observation's value.
 
Constructor Summary
ObservationReal(double value)
          An observation that can be described by a real.
 
Method Summary
 Centroid<ObservationReal> 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 double value
The observation's value.

Constructor Detail

ObservationReal

public ObservationReal(double value)
An observation that can be described by a real.

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

factor

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

Specified by:
factor in interface CentroidFactory<ObservationReal>
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.