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