|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.oil.HMM.Delta
A HMM.Delta
object contains a diff of the sufficient
statistics for an HMM
.
Field Summary | |
Matrix |
emissions
Estimated count of state-output emissions. |
Array |
marginals
Estimated marginal counts for each state. |
QSVector |
states
The set of states referenced in the sufficient statistics. |
Matrix |
transitions
Estimated count of state-state transitions. |
Constructor Summary | |
HMM.Delta(byte[] data,
int[] offset)
Construct a Delta from its
QuickSerializable form. |
|
HMM.Delta(QSVector states,
Array marginals,
Matrix transitions,
Matrix emissions)
Constructs a Delta with the specified
HMM data. |
Method Summary | |
Model.Delta |
sum(Model.Delta other)
Produce the sum of this and another Delta . |
void |
to_bytes(byte[] data,
int[] offset)
We store the statistics using compression maps for both the states and the outputs. |
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 QSVector states
public Array marginals
public Matrix transitions
public Matrix emissions
Constructor Detail |
public HMM.Delta(QSVector states, Array marginals, Matrix transitions, Matrix emissions)
Delta
with the specified
HMM
data. The statistics should only contain
entries for the specified states
.states
- The set of states contained in this
Delta
marginals
- A QuickSerializable->double
mapping from states to their marginal sufficient statistic.transitions
- A QuickSerializable->Array
mapping from states to their transition sufficient statistics.emissions
- A QuickSerializable->Array
mapping from states to their emission sufficient statistics.public HMM.Delta(byte[] data, int[] offset) throws QSException
Delta
from its
QuickSerializable
form.
See to_bytes(byte[], int[])
.Method Detail |
public Model.Delta sum(Model.Delta other)
Model.Delta
Delta
.sum
in interface Model.Delta
ostore.oil.Model.Delta
other
- The other Delta
.Delta
, constructed such that applying
it to a Model
produces an equivalent
Model
to that produced by adding first
this
, then other
.IllegalArgumentException
- if other
is not
an instance of a compatible Delta
subclass.public void to_bytes(byte[] data, int[] offset)
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 |