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

详细描述

class Model

在文件 HMM.h87 行定义.

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.h137 行定义.

float64_t get_const_a_val ( int32_t  line) const

get value out of const_a_val vector

在文件 HMM.h161 行定义.

int32_t get_const_b ( int32_t  line,
int32_t  column 
) const

get entry out of const_b matrix

在文件 HMM.h143 行定义.

float64_t get_const_b_val ( int32_t  line) const

get value out of const_b_val vector

在文件 HMM.h167 行定义.

int32_t get_const_p ( int32_t  offset) const

get entry out of const_p vector

在文件 HMM.h149 行定义.

float64_t get_const_p_val ( int32_t  offset) const

get value out of const_p_val vector

在文件 HMM.h173 行定义.

int32_t get_const_q ( int32_t  offset) const

get entry out of const_q vector

在文件 HMM.h155 行定义.

float64_t get_const_q_val ( int32_t  offset) const

get value out of const_q_val vector

在文件 HMM.h179 行定义.

int32_t get_learn_a ( int32_t  line,
int32_t  column 
) const

get entry out of learn_a matrix

在文件 HMM.h113 行定义.

int32_t get_learn_b ( int32_t  line,
int32_t  column 
) const

get entry out of learn_b matrix

在文件 HMM.h119 行定义.

int32_t get_learn_p ( int32_t  offset) const

get entry out of learn_p vector

在文件 HMM.h125 行定义.

int32_t get_learn_q ( int32_t  offset) const

get entry out of learn_q vector

在文件 HMM.h131 行定义.

void set_const_a ( int32_t  offset,
int32_t  value 
)

set value in const_a matrix

在文件 HMM.h225 行定义.

void set_const_a_val ( int32_t  offset,
float64_t  value 
)

set value in const_a_val vector

在文件 HMM.h249 行定义.

void set_const_b ( int32_t  offset,
int32_t  value 
)

set value in const_b matrix

在文件 HMM.h231 行定义.

void set_const_b_val ( int32_t  offset,
float64_t  value 
)

set value in const_b_val vector

在文件 HMM.h255 行定义.

void set_const_p ( int32_t  offset,
int32_t  value 
)

set value in const_p vector

在文件 HMM.h237 行定义.

void set_const_p_val ( int32_t  offset,
float64_t  value 
)

set value in const_p_val vector

在文件 HMM.h261 行定义.

void set_const_q ( int32_t  offset,
int32_t  value 
)

set value in const_q vector

在文件 HMM.h243 行定义.

void set_const_q_val ( int32_t  offset,
float64_t  value 
)

set value in const_q_val vector

在文件 HMM.h267 行定义.

void set_learn_a ( int32_t  offset,
int32_t  value 
)

set value in learn_a matrix

在文件 HMM.h201 行定义.

void set_learn_b ( int32_t  offset,
int32_t  value 
)

set value in learn_b matrix

在文件 HMM.h207 行定义.

void set_learn_p ( int32_t  offset,
int32_t  value 
)

set value in learn_p vector

在文件 HMM.h213 行定义.

void set_learn_q ( int32_t  offset,
int32_t  value 
)

set value in learn_q vector

在文件 HMM.h219 行定义.

void sort_learn_a ( )

sorts learn_a matrix

在文件 HMM.h97 行定义.

void sort_learn_b ( )

sorts learn_b matrix

在文件 HMM.h103 行定义.

类成员变量说明

int32_t* const_a
protected

transitions that have constant probability

在文件 HMM.h327 行定义.

float64_t* const_a_val
protected

values for transitions that have constant probability

在文件 HMM.h340 行定义.

int32_t* const_b
protected

emissions that have constant probability

在文件 HMM.h330 行定义.

float64_t* const_b_val
protected

values for emissions that have constant probability

在文件 HMM.h343 行定义.

int32_t* const_p
protected

start states that have constant probability

在文件 HMM.h333 行定义.

float64_t* const_p_val
protected

values for start states that have constant probability

在文件 HMM.h346 行定义.

int32_t* const_q
protected

end states that have constant probability

在文件 HMM.h336 行定义.

float64_t* const_q_val
protected

values for end states that have constant probability

在文件 HMM.h349 行定义.

int32_t* learn_a
protected

transitions to be learned

在文件 HMM.h308 行定义.

int32_t* learn_b
protected

emissions to be learned

在文件 HMM.h311 行定义.

int32_t* learn_p
protected

start states to be learned

在文件 HMM.h314 行定义.

int32_t* learn_q
protected

end states to be learned

在文件 HMM.h317 行定义.


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

SHOGUN Machine Learning Toolbox - Documentation