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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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 statetransitions
- 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
serialize
d form.
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
- Following copied from interface:
ostore.oil.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
- Following copied from interface:
ostore.util.QuickSerializable
- Parameters:
buffer
- the output buffer to add the object to