#include <lab2_vit.H>
Public Member Functions | |
VitCell () | |
Ctor; inits log prob to g_zeroLogProb and arc ID to -1. | |
void | assign (double logProb, int arcId) |
Sets associated log prob and arc ID. | |
double | get_log_prob () const |
Returns log prob of cell. | |
int | get_arc_id () const |
Returns arc ID of cell. |
Holds Viterbi log prob; and arc ID of best incoming arc for backtrace.
VitCell::VitCell | ( | ) | [inline] |
Ctor; inits log prob to g_zeroLogProb and arc ID to -1.
void VitCell::assign | ( | double | logProb, | |
int | arcId | |||
) | [inline] |
Sets associated log prob and arc ID.
double VitCell::get_log_prob | ( | ) | const [inline] |
Returns log prob of cell.
int VitCell::get_arc_id | ( | ) | const [inline] |
Returns arc ID of cell.