SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
所有成员列表 | Public 成员函数
Model类 参考

详细描述

class Model

在文件 HMM.h85 行定义.

Public 成员函数

 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 属性

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 更多...
 

构造及析构函数说明

Model ( )

Constructor - initializes all variables/structures.

在文件 HMM.cpp81 行定义.

~Model ( )
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.h135 行定义.

float64_t get_const_a_val ( int32_t  line) const

get value out of const_a_val vector

在文件 HMM.h159 行定义.

int32_t get_const_b ( int32_t  line,
int32_t  column 
) const

get entry out of const_b matrix

在文件 HMM.h141 行定义.

float64_t get_const_b_val ( int32_t  line) const

get value out of const_b_val vector

在文件 HMM.h165 行定义.

int32_t get_const_p ( int32_t  offset) const

get entry out of const_p vector

在文件 HMM.h147 行定义.

float64_t get_const_p_val ( int32_t  offset) const

get value out of const_p_val vector

在文件 HMM.h171 行定义.

int32_t get_const_q ( int32_t  offset) const

get entry out of const_q vector

在文件 HMM.h153 行定义.

float64_t get_const_q_val ( int32_t  offset) const

get value out of const_q_val vector

在文件 HMM.h177 行定义.

int32_t get_learn_a ( int32_t  line,
int32_t  column 
) const

get entry out of learn_a matrix

在文件 HMM.h111 行定义.

int32_t get_learn_b ( int32_t  line,
int32_t  column 
) const

get entry out of learn_b matrix

在文件 HMM.h117 行定义.

int32_t get_learn_p ( int32_t  offset) const

get entry out of learn_p vector

在文件 HMM.h123 行定义.

int32_t get_learn_q ( int32_t  offset) const

get entry out of learn_q vector

在文件 HMM.h129 行定义.

void set_const_a ( int32_t  offset,
int32_t  value 
)

set value in const_a matrix

在文件 HMM.h223 行定义.

void set_const_a_val ( int32_t  offset,
float64_t  value 
)

set value in const_a_val vector

在文件 HMM.h247 行定义.

void set_const_b ( int32_t  offset,
int32_t  value 
)

set value in const_b matrix

在文件 HMM.h229 行定义.

void set_const_b_val ( int32_t  offset,
float64_t  value 
)

set value in const_b_val vector

在文件 HMM.h253 行定义.

void set_const_p ( int32_t  offset,
int32_t  value 
)

set value in const_p vector

在文件 HMM.h235 行定义.

void set_const_p_val ( int32_t  offset,
float64_t  value 
)

set value in const_p_val vector

在文件 HMM.h259 行定义.

void set_const_q ( int32_t  offset,
int32_t  value 
)

set value in const_q vector

在文件 HMM.h241 行定义.

void set_const_q_val ( int32_t  offset,
float64_t  value 
)

set value in const_q_val vector

在文件 HMM.h265 行定义.

void set_learn_a ( int32_t  offset,
int32_t  value 
)

set value in learn_a matrix

在文件 HMM.h199 行定义.

void set_learn_b ( int32_t  offset,
int32_t  value 
)

set value in learn_b matrix

在文件 HMM.h205 行定义.

void set_learn_p ( int32_t  offset,
int32_t  value 
)

set value in learn_p vector

在文件 HMM.h211 行定义.

void set_learn_q ( int32_t  offset,
int32_t  value 
)

set value in learn_q vector

在文件 HMM.h217 行定义.

void sort_learn_a ( )

sorts learn_a matrix

在文件 HMM.h95 行定义.

void sort_learn_b ( )

sorts learn_b matrix

在文件 HMM.h101 行定义.

类成员变量说明

int32_t* const_a
protected

transitions that have constant probability

在文件 HMM.h325 行定义.

float64_t* const_a_val
protected

values for transitions that have constant probability

在文件 HMM.h338 行定义.

int32_t* const_b
protected

emissions that have constant probability

在文件 HMM.h328 行定义.

float64_t* const_b_val
protected

values for emissions that have constant probability

在文件 HMM.h341 行定义.

int32_t* const_p
protected

start states that have constant probability

在文件 HMM.h331 行定义.

float64_t* const_p_val
protected

values for start states that have constant probability

在文件 HMM.h344 行定义.

int32_t* const_q
protected

end states that have constant probability

在文件 HMM.h334 行定义.

float64_t* const_q_val
protected

values for end states that have constant probability

在文件 HMM.h347 行定义.

int32_t* learn_a
protected

transitions to be learned

在文件 HMM.h306 行定义.

int32_t* learn_b
protected

emissions to be learned

在文件 HMM.h309 行定义.

int32_t* learn_p
protected

start states to be learned

在文件 HMM.h312 行定义.

int32_t* learn_q
protected

end states to be learned

在文件 HMM.h315 行定义.


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

SHOGUN 机器学习工具包 - 项目文档