|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.oil.HMM.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
.
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
serialize d 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 |
public QuickSerializable state
Segment
.
public double marginal
public Array transitions
public Array emissions
Constructor Detail |
public HMM.Segment(QuickSerializable state, double marginal, Array transitions, Array emissions)
Segment
.
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.public HMM.Segment(InputBuffer buffer) throws QSException
Segment
from its
serialize
d form.
Method Detail |
public QuickSerializable id()
SegmentedModel.Segment
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.
id
in interface SegmentedModel.Segment
Segment
.public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |