ostore.oil
Class HMM.Segment

java.lang.Object
  |
  +--ostore.oil.HMM.Segment
All Implemented Interfaces:
QueueElementIF, QuickSerializable, SegmentedModel.Segment
Enclosing class:
HMM

public static class HMM.Segment
extends Object
implements SegmentedModel.Segment

A Segment object contains the internal model state associated with a single state. It can be used to swap the information to/from an HMM.

Version:
$Id: HMM.java,v 1.31 2002/07/20 19:38:03 srhea Exp $
Author:
Dennis Geels

Field Summary
 Array emissions
          Estimated count of output emissions from this state.
 double marginal
          Estimated marginal count for this state
 QuickSerializable state
          The ID for the state whose information is stored in Segment.
 Array transitions
          Estimated count of transitions out of this state.
 
Constructor Summary
HMM.Segment(InputBuffer buffer)
          Constructs a Segment from its serialized form.
HMM.Segment(QuickSerializable state, double marginal, Array transitions, Array emissions)
          Create a new Segment.
 
Method Summary
 QuickSerializable id()
          Returns the unique ID for this Segment.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

public QuickSerializable state
The ID for the state whose information is stored in Segment.


marginal

public double marginal
Estimated marginal count for this state


transitions

public Array transitions
Estimated count of transitions out of this state.


emissions

public Array emissions
Estimated count of output emissions from this state.

Constructor Detail

HMM.Segment

public HMM.Segment(QuickSerializable state,
                   double marginal,
                   Array transitions,
                   Array emissions)
Create a new Segment.

Parameters:
state - The ID for the state whose information is stored in this Segment.
marginal - Estimated marginal count for this state
transitions - Estimated count of transitions out of this state.
emissions - Estimated count of output emissions from this state.

HMM.Segment

public HMM.Segment(InputBuffer buffer)
            throws QSException
Constructs a Segment from its serialized form.

Method Detail

id

public QuickSerializable id()
Description copied from interface: SegmentedModel.Segment
Returns the unique ID for this Segment. This ID serves as the only key identifying a Segment - Segment.equals should never be called. (Segment.id()).equals and (Segment.id()).hashCode, however, may be called quite often. Avoid using QuickSerializable IDs for which those methods are expensive.

Specified by:
id in interface SegmentedModel.Segment
Returns:
the unique ID for this Segment.

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to