Public Member Functions |
| Model () |
| Constructor - initializes all variables/structures.
|
virtual | ~Model () |
| 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
|
int32_t | get_learn_a (int32_t line, int32_t column) const |
| get entry out of learn_a matrix
|
int32_t | get_learn_b (int32_t line, int32_t column) const |
| get entry out of learn_b matrix
|
int32_t | get_learn_p (int32_t offset) const |
| get entry out of learn_p vector
|
int32_t | get_learn_q (int32_t offset) const |
| get entry out of learn_q vector
|
int32_t | get_const_a (int32_t line, int32_t column) const |
| get entry out of const_a matrix
|
int32_t | get_const_b (int32_t line, int32_t column) const |
| get entry out of const_b matrix
|
int32_t | get_const_p (int32_t offset) const |
| get entry out of const_p vector
|
int32_t | get_const_q (int32_t offset) const |
| get entry out of const_q vector
|
float64_t | get_const_a_val (int32_t line) const |
| get value out of const_a_val vector
|
float64_t | get_const_b_val (int32_t line) const |
| get value out of const_b_val vector
|
float64_t | get_const_p_val (int32_t offset) const |
| get value out of const_p_val vector
|
float64_t | get_const_q_val (int32_t offset) const |
| get value out of const_q_val vector
|
|
For learn and const arrays
|
void | set_learn_a (int32_t offset, int32_t value) |
| set value in learn_a matrix
|
void | set_learn_b (int32_t offset, int32_t value) |
| set value in learn_b matrix
|
void | set_learn_p (int32_t offset, int32_t value) |
| set value in learn_p vector
|
void | set_learn_q (int32_t offset, int32_t value) |
| set value in learn_q vector
|
void | set_const_a (int32_t offset, int32_t value) |
| set value in const_a matrix
|
void | set_const_b (int32_t offset, int32_t value) |
| set value in const_b matrix
|
void | set_const_p (int32_t offset, int32_t value) |
| set value in const_p vector
|
void | set_const_q (int32_t offset, int32_t value) |
| set value in const_q vector
|
void | set_const_a_val (int32_t offset, float64_t value) |
| set value in const_a_val vector
|
void | set_const_b_val (int32_t offset, float64_t value) |
| set value in const_b_val vector
|
void | set_const_p_val (int32_t offset, float64_t value) |
| set value in const_p_val vector
|
void | set_const_q_val (int32_t offset, float64_t 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.
|
int32_t * | learn_a |
| transitions to be learned
|
int32_t * | learn_b |
| emissions to be learned
|
int32_t * | learn_p |
| start states to be learned
|
int32_t * | 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.
|
int32_t * | const_a |
| transitions that have constant probability
|
int32_t * | const_b |
| emissions that have constant probability
|
int32_t * | const_p |
| start states that have constant probability
|
int32_t * | const_q |
| end states that have constant probability
|
float64_t * | const_a_val |
| values for transitions that have constant probability
|
float64_t * | const_b_val |
| values for emissions that have constant probability
|
float64_t * | const_p_val |
| values for start states that have constant probability
|
float64_t * | const_q_val |
| values for end states that have constant probability
|