|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ostore.oil.HMM.Prediction
A Prediction object contains an array of states
and a matching array of weights. The arrays are sorted, with the
most likely (highest-weighted) states first. The probability of
each state is computed using the HMM Maximum Likelihood
estimates.
HMM.predict(int),
Model.Prediction| Field Summary | |
|---|---|
double |
log_likelihood
The logarithm of the likelihood of this Prediction
given the current model parameters (p(D|\theta)). |
QuickSerializable[] |
states
The states predicted to occur soon. |
double[] |
weights
The estimated weight (confidence) for each state. |
| Constructor Summary | |
|---|---|
HMM.Prediction(InputBuffer buffer)
Constructs a Prediction from its
serialized form. |
|
HMM.Prediction(QuickSerializable[] states,
double[] weights,
double log_likelihood)
Creates a new Prediction with the specified
states and their weights. |
|
| Method Summary | |
|---|---|
void |
serialize(OutputBuffer buffer)
Add the object to the buffer. |
String |
toString()
Produces a brief human-readable summary of this Prediction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public QuickSerializable[] states
public double[] weights
public double log_likelihood
Prediction
given the current model parameters (p(D|\theta)).
| Constructor Detail |
public HMM.Prediction(QuickSerializable[] states,
double[] weights,
double log_likelihood)
Prediction with the specified
states and their weights.
public HMM.Prediction(InputBuffer buffer)
throws QSException
Prediction from its
serialized form.
| Method Detail |
public String toString()
Prediction.
toString in class ObjectString containing the top few predicted
states, ordered by weight.public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializablebuffer - the output buffer to add the object to
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||