SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
Model Class Reference

Detailed Description

class Model

Definition at line 87 of file HMM.h.

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
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
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
write access functions

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

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
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
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
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_tconst_a_val
 values for transitions that have constant probability
float64_tconst_b_val
 values for emissions that have constant probability
float64_tconst_p_val
 values for start states that have constant probability
float64_tconst_q_val
 values for end states that have constant probability

Constructor & Destructor Documentation

Model ( )

Constructor - initializes all variables/structures.

Definition at line 81 of file HMM.cpp.

~Model ( )
virtual

Destructor - cleans up.

Definition at line 121 of file HMM.cpp.

Member Function Documentation

int32_t get_const_a ( int32_t  line,
int32_t  column 
) const

get entry out of const_a matrix

Definition at line 137 of file HMM.h.

float64_t get_const_a_val ( int32_t  line) const

get value out of const_a_val vector

Definition at line 161 of file HMM.h.

int32_t get_const_b ( int32_t  line,
int32_t  column 
) const

get entry out of const_b matrix

Definition at line 143 of file HMM.h.

float64_t get_const_b_val ( int32_t  line) const

get value out of const_b_val vector

Definition at line 167 of file HMM.h.

int32_t get_const_p ( int32_t  offset) const

get entry out of const_p vector

Definition at line 149 of file HMM.h.

float64_t get_const_p_val ( int32_t  offset) const

get value out of const_p_val vector

Definition at line 173 of file HMM.h.

int32_t get_const_q ( int32_t  offset) const

get entry out of const_q vector

Definition at line 155 of file HMM.h.

float64_t get_const_q_val ( int32_t  offset) const

get value out of const_q_val vector

Definition at line 179 of file HMM.h.

int32_t get_learn_a ( int32_t  line,
int32_t  column 
) const

get entry out of learn_a matrix

Definition at line 113 of file HMM.h.

int32_t get_learn_b ( int32_t  line,
int32_t  column 
) const

get entry out of learn_b matrix

Definition at line 119 of file HMM.h.

int32_t get_learn_p ( int32_t  offset) const

get entry out of learn_p vector

Definition at line 125 of file HMM.h.

int32_t get_learn_q ( int32_t  offset) const

get entry out of learn_q vector

Definition at line 131 of file HMM.h.

void set_const_a ( int32_t  offset,
int32_t  value 
)

set value in const_a matrix

Definition at line 225 of file HMM.h.

void set_const_a_val ( int32_t  offset,
float64_t  value 
)

set value in const_a_val vector

Definition at line 249 of file HMM.h.

void set_const_b ( int32_t  offset,
int32_t  value 
)

set value in const_b matrix

Definition at line 231 of file HMM.h.

void set_const_b_val ( int32_t  offset,
float64_t  value 
)

set value in const_b_val vector

Definition at line 255 of file HMM.h.

void set_const_p ( int32_t  offset,
int32_t  value 
)

set value in const_p vector

Definition at line 237 of file HMM.h.

void set_const_p_val ( int32_t  offset,
float64_t  value 
)

set value in const_p_val vector

Definition at line 261 of file HMM.h.

void set_const_q ( int32_t  offset,
int32_t  value 
)

set value in const_q vector

Definition at line 243 of file HMM.h.

void set_const_q_val ( int32_t  offset,
float64_t  value 
)

set value in const_q_val vector

Definition at line 267 of file HMM.h.

void set_learn_a ( int32_t  offset,
int32_t  value 
)

set value in learn_a matrix

Definition at line 201 of file HMM.h.

void set_learn_b ( int32_t  offset,
int32_t  value 
)

set value in learn_b matrix

Definition at line 207 of file HMM.h.

void set_learn_p ( int32_t  offset,
int32_t  value 
)

set value in learn_p vector

Definition at line 213 of file HMM.h.

void set_learn_q ( int32_t  offset,
int32_t  value 
)

set value in learn_q vector

Definition at line 219 of file HMM.h.

void sort_learn_a ( )

sorts learn_a matrix

Definition at line 97 of file HMM.h.

void sort_learn_b ( )

sorts learn_b matrix

Definition at line 103 of file HMM.h.

Member Data Documentation

int32_t* const_a
protected

transitions that have constant probability

Definition at line 327 of file HMM.h.

float64_t* const_a_val
protected

values for transitions that have constant probability

Definition at line 340 of file HMM.h.

int32_t* const_b
protected

emissions that have constant probability

Definition at line 330 of file HMM.h.

float64_t* const_b_val
protected

values for emissions that have constant probability

Definition at line 343 of file HMM.h.

int32_t* const_p
protected

start states that have constant probability

Definition at line 333 of file HMM.h.

float64_t* const_p_val
protected

values for start states that have constant probability

Definition at line 346 of file HMM.h.

int32_t* const_q
protected

end states that have constant probability

Definition at line 336 of file HMM.h.

float64_t* const_q_val
protected

values for end states that have constant probability

Definition at line 349 of file HMM.h.

int32_t* learn_a
protected

transitions to be learned

Definition at line 308 of file HMM.h.

int32_t* learn_b
protected

emissions to be learned

Definition at line 311 of file HMM.h.

int32_t* learn_p
protected

start states to be learned

Definition at line 314 of file HMM.h.

int32_t* learn_q
protected

end states to be learned

Definition at line 317 of file HMM.h.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation