|
Public Member Functions |
| CModel () |
| Constructor - initializes all variables/structures.
|
virtual | ~CModel () |
| Destructor - cleans up.
|
void | sort_learn_a () |
| sorts learn_a matrix
|
void | sort_learn_b () |
| sorts learn_b matrix
|
|
For learn arrays and const arrays
|
INT | get_learn_a (INT line, INT column) const |
| get entry out of learn_a matrix
|
INT | get_learn_b (INT line, INT column) const |
| get entry out of learn_b matrix
|
INT | get_learn_p (INT offset) const |
| get entry out of learn_p vector
|
INT | get_learn_q (INT offset) const |
| get entry out of learn_q vector
|
INT | get_const_a (INT line, INT column) const |
| get entry out of const_a matrix
|
INT | get_const_b (INT line, INT column) const |
| get entry out of const_b matrix
|
INT | get_const_p (INT offset) const |
| get entry out of const_p vector
|
INT | get_const_q (INT offset) const |
| get entry out of const_q vector
|
DREAL | get_const_a_val (INT line) const |
| get value out of const_a_val vector
|
DREAL | get_const_b_val (INT line) const |
| get value out of const_b_val vector
|
DREAL | get_const_p_val (INT offset) const |
| get value out of const_p_val vector
|
DREAL | get_const_q_val (INT offset) const |
| get value out of const_q_val vector
|
|
For learn and const arrays
|
void | set_learn_a (INT offset, INT value) |
| set value in learn_a matrix
|
void | set_learn_b (INT offset, INT value) |
| set value in learn_b matrix
|
void | set_learn_p (INT offset, INT value) |
| set value in learn_p vector
|
void | set_learn_q (INT offset, INT value) |
| set value in learn_q vector
|
void | set_const_a (INT offset, INT value) |
| set value in const_a matrix
|
void | set_const_b (INT offset, INT value) |
| set value in const_b matrix
|
void | set_const_p (INT offset, INT value) |
| set value in const_p vector
|
void | set_const_q (INT offset, INT value) |
| set value in const_q vector
|
void | set_const_a_val (INT offset, DREAL value) |
| set value in const_a_val vector
|
void | set_const_b_val (INT offset, DREAL value) |
| set value in const_b_val vector
|
void | set_const_p_val (INT offset, DREAL value) |
| set value in const_p_val vector
|
void | set_const_q_val (INT offset, DREAL value) |
| set value in const_q_val vector
|
Protected Attributes |
|
Everything that is to be learned is enumerated here. All values will be inititialized with random values and normalized to satisfy stochasticity.
|
INT * | learn_a |
| transitions to be learned
|
INT * | learn_b |
| emissions to be learned
|
INT * | learn_p |
| start states to be learned
|
INT * | learn_q |
| end states to be learned
|
|
These arrays hold constant fields. All values that are not constant and will not be learned are initialized with 0.
|
INT * | const_a |
| transitions that have constant probability
|
INT * | const_b |
| emissions that have constant probability
|
INT * | const_p |
| start states that have constant probability
|
INT * | const_q |
| end states that have constant probability
|
DREAL * | const_a_val |
| values for transitions that have constant probability
|
DREAL * | const_b_val |
| values for emissions that have constant probability
|
DREAL * | const_p_val |
| values for start states that have constant probability
|
DREAL * | const_q_val |
| values for end states that have constant probability
|