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

Detailed Description

class Model

Definition at line 85 of file HMM.h.

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

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 135 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 159 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 141 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 165 of file HMM.h.

int32_t get_const_p ( int32_t  offset) const

get entry out of const_p vector

Definition at line 147 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 171 of file HMM.h.

int32_t get_const_q ( int32_t  offset) const

get entry out of const_q vector

Definition at line 153 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 177 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 111 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 117 of file HMM.h.

int32_t get_learn_p ( int32_t  offset) const

get entry out of learn_p vector

Definition at line 123 of file HMM.h.

int32_t get_learn_q ( int32_t  offset) const

get entry out of learn_q vector

Definition at line 129 of file HMM.h.

void set_const_a ( int32_t  offset,
int32_t  value 
)

set value in const_a matrix

Definition at line 223 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 247 of file HMM.h.

void set_const_b ( int32_t  offset,
int32_t  value 
)

set value in const_b matrix

Definition at line 229 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 253 of file HMM.h.

void set_const_p ( int32_t  offset,
int32_t  value 
)

set value in const_p vector

Definition at line 235 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 259 of file HMM.h.

void set_const_q ( int32_t  offset,
int32_t  value 
)

set value in const_q vector

Definition at line 241 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 265 of file HMM.h.

void set_learn_a ( int32_t  offset,
int32_t  value 
)

set value in learn_a matrix

Definition at line 199 of file HMM.h.

void set_learn_b ( int32_t  offset,
int32_t  value 
)

set value in learn_b matrix

Definition at line 205 of file HMM.h.

void set_learn_p ( int32_t  offset,
int32_t  value 
)

set value in learn_p vector

Definition at line 211 of file HMM.h.

void set_learn_q ( int32_t  offset,
int32_t  value 
)

set value in learn_q vector

Definition at line 217 of file HMM.h.

void sort_learn_a ( )

sorts learn_a matrix

Definition at line 95 of file HMM.h.

void sort_learn_b ( )

sorts learn_b matrix

Definition at line 101 of file HMM.h.

Member Data Documentation

int32_t* const_a
protected

transitions that have constant probability

Definition at line 325 of file HMM.h.

float64_t* const_a_val
protected

values for transitions that have constant probability

Definition at line 338 of file HMM.h.

int32_t* const_b
protected

emissions that have constant probability

Definition at line 328 of file HMM.h.

float64_t* const_b_val
protected

values for emissions that have constant probability

Definition at line 341 of file HMM.h.

int32_t* const_p
protected

start states that have constant probability

Definition at line 331 of file HMM.h.

float64_t* const_p_val
protected

values for start states that have constant probability

Definition at line 344 of file HMM.h.

int32_t* const_q
protected

end states that have constant probability

Definition at line 334 of file HMM.h.

float64_t* const_q_val
protected

values for end states that have constant probability

Definition at line 347 of file HMM.h.

int32_t* learn_a
protected

transitions to be learned

Definition at line 306 of file HMM.h.

int32_t* learn_b
protected

emissions to be learned

Definition at line 309 of file HMM.h.

int32_t* learn_p
protected

start states to be learned

Definition at line 312 of file HMM.h.

int32_t* learn_q
protected

end states to be learned

Definition at line 315 of file HMM.h.


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

SHOGUN Machine Learning Toolbox - Documentation