CModel Class Reference

List of all members.


Detailed Description

class Model

Definition at line 79 of file HMM.h.


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

learn arrays.
Everything that is to be learned is enumerated here. All values will be inititialized with random values and normalized to satisfy stochasticity.

INTlearn_a
 transitions to be learned
INTlearn_b
 emissions to be learned
INTlearn_p
 start states to be learned
INTlearn_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.

INTconst_a
 transitions that have constant probability
INTconst_b
 emissions that have constant probability
INTconst_p
 start states that have constant probability
INTconst_q
 end states that have constant probability
DREALconst_a_val
 values for transitions that have constant probability
DREALconst_b_val
 values for emissions that have constant probability
DREALconst_p_val
 values for start states that have constant probability
DREALconst_q_val
 values for end states that have constant probability

Constructor & Destructor Documentation

CModel::CModel (  ) 

Constructor - initializes all variables/structures.

Definition at line 88 of file HMM.cpp.

CModel::~CModel (  )  [virtual]

Destructor - cleans up.

Definition at line 128 of file HMM.cpp.


Member Function Documentation

void CModel::sort_learn_a (  ) 

sorts learn_a matrix

Definition at line 89 of file HMM.h.

void CModel::sort_learn_b (  ) 

sorts learn_b matrix

Definition at line 95 of file HMM.h.

INT CModel::get_learn_a ( INT  line,
INT  column 
) const

get entry out of learn_a matrix

Definition at line 105 of file HMM.h.

INT CModel::get_learn_b ( INT  line,
INT  column 
) const

get entry out of learn_b matrix

Definition at line 111 of file HMM.h.

INT CModel::get_learn_p ( INT  offset  )  const

get entry out of learn_p vector

Definition at line 117 of file HMM.h.

INT CModel::get_learn_q ( INT  offset  )  const

get entry out of learn_q vector

Definition at line 123 of file HMM.h.

INT CModel::get_const_a ( INT  line,
INT  column 
) const

get entry out of const_a matrix

Definition at line 129 of file HMM.h.

INT CModel::get_const_b ( INT  line,
INT  column 
) const

get entry out of const_b matrix

Definition at line 135 of file HMM.h.

INT CModel::get_const_p ( INT  offset  )  const

get entry out of const_p vector

Definition at line 141 of file HMM.h.

INT CModel::get_const_q ( INT  offset  )  const

get entry out of const_q vector

Definition at line 147 of file HMM.h.

DREAL CModel::get_const_a_val ( INT  line  )  const

get value out of const_a_val vector

Definition at line 153 of file HMM.h.

DREAL CModel::get_const_b_val ( INT  line  )  const

get value out of const_b_val vector

Definition at line 159 of file HMM.h.

DREAL CModel::get_const_p_val ( INT  offset  )  const

get value out of const_p_val vector

Definition at line 165 of file HMM.h.

DREAL CModel::get_const_q_val ( INT  offset  )  const

get value out of const_q_val vector

Definition at line 171 of file HMM.h.

void CModel::set_learn_a ( INT  offset,
INT  value 
)

set value in learn_a matrix

Definition at line 193 of file HMM.h.

void CModel::set_learn_b ( INT  offset,
INT  value 
)

set value in learn_b matrix

Definition at line 199 of file HMM.h.

void CModel::set_learn_p ( INT  offset,
INT  value 
)

set value in learn_p vector

Definition at line 205 of file HMM.h.

void CModel::set_learn_q ( INT  offset,
INT  value 
)

set value in learn_q vector

Definition at line 211 of file HMM.h.

void CModel::set_const_a ( INT  offset,
INT  value 
)

set value in const_a matrix

Definition at line 217 of file HMM.h.

void CModel::set_const_b ( INT  offset,
INT  value 
)

set value in const_b matrix

Definition at line 223 of file HMM.h.

void CModel::set_const_p ( INT  offset,
INT  value 
)

set value in const_p vector

Definition at line 229 of file HMM.h.

void CModel::set_const_q ( INT  offset,
INT  value 
)

set value in const_q vector

Definition at line 235 of file HMM.h.

void CModel::set_const_a_val ( INT  offset,
DREAL  value 
)

set value in const_a_val vector

Definition at line 241 of file HMM.h.

void CModel::set_const_b_val ( INT  offset,
DREAL  value 
)

set value in const_b_val vector

Definition at line 247 of file HMM.h.

void CModel::set_const_p_val ( INT  offset,
DREAL  value 
)

set value in const_p_val vector

Definition at line 253 of file HMM.h.

void CModel::set_const_q_val ( INT  offset,
DREAL  value 
)

set value in const_q_val vector

Definition at line 259 of file HMM.h.


Member Data Documentation

INT* CModel::learn_a [protected]

transitions to be learned

Definition at line 299 of file HMM.h.

INT* CModel::learn_b [protected]

emissions to be learned

Definition at line 302 of file HMM.h.

INT* CModel::learn_p [protected]

start states to be learned

Definition at line 305 of file HMM.h.

INT* CModel::learn_q [protected]

end states to be learned

Definition at line 308 of file HMM.h.

INT* CModel::const_a [protected]

transitions that have constant probability

Definition at line 318 of file HMM.h.

INT* CModel::const_b [protected]

emissions that have constant probability

Definition at line 321 of file HMM.h.

INT* CModel::const_p [protected]

start states that have constant probability

Definition at line 324 of file HMM.h.

INT* CModel::const_q [protected]

end states that have constant probability

Definition at line 327 of file HMM.h.

DREAL* CModel::const_a_val [protected]

values for transitions that have constant probability

Definition at line 331 of file HMM.h.

DREAL* CModel::const_b_val [protected]

values for emissions that have constant probability

Definition at line 334 of file HMM.h.

DREAL* CModel::const_p_val [protected]

values for start states that have constant probability

Definition at line 337 of file HMM.h.

DREAL* CModel::const_q_val [protected]

values for end states that have constant probability

Definition at line 340 of file HMM.h.


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

SHOGUN Machine Learning Toolbox - Documentation