公有成员

CModel类参考


详细描述

class Model

在文件HMM.h81行定义。

所有成员的列表。

公有成员

 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

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

保护属性

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

构造及析构函数文档

CModel (  ) 

Constructor - initializes all variables/structures.

在文件HMM.cpp81行定义。

~CModel (  )  [virtual]

Destructor - cleans up.

在文件HMM.cpp121行定义。


成员函数文档

int32_t get_const_a ( int32_t  line,
int32_t  column 
) const

get entry out of const_a matrix

在文件HMM.h131行定义。

float64_t get_const_a_val ( int32_t  line  )  const

get value out of const_a_val vector

在文件HMM.h155行定义。

int32_t get_const_b ( int32_t  line,
int32_t  column 
) const

get entry out of const_b matrix

在文件HMM.h137行定义。

float64_t get_const_b_val ( int32_t  line  )  const

get value out of const_b_val vector

在文件HMM.h161行定义。

int32_t get_const_p ( int32_t  offset  )  const

get entry out of const_p vector

在文件HMM.h143行定义。

float64_t get_const_p_val ( int32_t  offset  )  const

get value out of const_p_val vector

在文件HMM.h167行定义。

int32_t get_const_q ( int32_t  offset  )  const

get entry out of const_q vector

在文件HMM.h149行定义。

float64_t get_const_q_val ( int32_t  offset  )  const

get value out of const_q_val vector

在文件HMM.h173行定义。

int32_t get_learn_a ( int32_t  line,
int32_t  column 
) const

get entry out of learn_a matrix

在文件HMM.h107行定义。

int32_t get_learn_b ( int32_t  line,
int32_t  column 
) const

get entry out of learn_b matrix

在文件HMM.h113行定义。

int32_t get_learn_p ( int32_t  offset  )  const

get entry out of learn_p vector

在文件HMM.h119行定义。

int32_t get_learn_q ( int32_t  offset  )  const

get entry out of learn_q vector

在文件HMM.h125行定义。

void set_const_a ( int32_t  offset,
int32_t  value 
)

set value in const_a matrix

在文件HMM.h219行定义。

void set_const_a_val ( int32_t  offset,
float64_t  value 
)

set value in const_a_val vector

在文件HMM.h243行定义。

void set_const_b ( int32_t  offset,
int32_t  value 
)

set value in const_b matrix

在文件HMM.h225行定义。

void set_const_b_val ( int32_t  offset,
float64_t  value 
)

set value in const_b_val vector

在文件HMM.h249行定义。

void set_const_p ( int32_t  offset,
int32_t  value 
)

set value in const_p vector

在文件HMM.h231行定义。

void set_const_p_val ( int32_t  offset,
float64_t  value 
)

set value in const_p_val vector

在文件HMM.h255行定义。

void set_const_q ( int32_t  offset,
int32_t  value 
)

set value in const_q vector

在文件HMM.h237行定义。

void set_const_q_val ( int32_t  offset,
float64_t  value 
)

set value in const_q_val vector

在文件HMM.h261行定义。

void set_learn_a ( int32_t  offset,
int32_t  value 
)

set value in learn_a matrix

在文件HMM.h195行定义。

void set_learn_b ( int32_t  offset,
int32_t  value 
)

set value in learn_b matrix

在文件HMM.h201行定义。

void set_learn_p ( int32_t  offset,
int32_t  value 
)

set value in learn_p vector

在文件HMM.h207行定义。

void set_learn_q ( int32_t  offset,
int32_t  value 
)

set value in learn_q vector

在文件HMM.h213行定义。

void sort_learn_a (  ) 

sorts learn_a matrix

在文件HMM.h91行定义。

void sort_learn_b (  ) 

sorts learn_b matrix

在文件HMM.h97行定义。


成员数据文档

int32_t* const_a [protected]

transitions that have constant probability

在文件HMM.h321行定义。

float64_t* const_a_val [protected]

values for transitions that have constant probability

在文件HMM.h334行定义。

int32_t* const_b [protected]

emissions that have constant probability

在文件HMM.h324行定义。

float64_t* const_b_val [protected]

values for emissions that have constant probability

在文件HMM.h337行定义。

int32_t* const_p [protected]

start states that have constant probability

在文件HMM.h327行定义。

float64_t* const_p_val [protected]

values for start states that have constant probability

在文件HMM.h340行定义。

int32_t* const_q [protected]

end states that have constant probability

在文件HMM.h330行定义。

float64_t* const_q_val [protected]

values for end states that have constant probability

在文件HMM.h343行定义。

int32_t* learn_a [protected]

transitions to be learned

在文件HMM.h302行定义。

int32_t* learn_b [protected]

emissions to be learned

在文件HMM.h305行定义。

int32_t* learn_p [protected]

start states to be learned

在文件HMM.h308行定义。

int32_t* learn_q [protected]

end states to be learned

在文件HMM.h311行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation