|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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(byte[] data,
int[] offset)
Create a Segment from its
QuickSerializable 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 |
to_bytes(byte[] data,
int[] offset)
Store the object in its "on the wire" form in the byte array data , starting at index offset [0] , and
increment offset [0] by the number of bytes written;
if data == null , increment offset [0] by
the number of bytes that would have been written otherwise. |
int |
type_code()
Returns the unique integer associated with this class in the TypeTable . |
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(byte[] data, int[] offset) throws QSException
Segment
from its
QuickSerializable
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
ostore.oil.SegmentedModel.Segment
Segment
.public void to_bytes(byte[] data, int[] offset)
QuickSerializable
data
, starting at index offset [0]
, and
increment offset [0]
by the number of bytes written;
if data == null
, increment offset [0]
by
the number of bytes that would have been written otherwise.to_bytes
in interface QuickSerializable
ostore.util.QuickSerializable
data
- The byte array to store into, or null
.offset
- A single element array whose first
element is the index in data to begin writing at on
function entry, and which on function exit has been
incremented by the number of bytes written.public int type_code()
QuickSerializable
TypeTable
.type_code
in interface QuickSerializable
ostore.util.QuickSerializable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |