SHOGUN  v3.2.0
所有成员列表 | Public 成员函数
Model类 参考

详细描述

class Model

在文件 HMM.h 第 87 行定义.

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_t * const_a_val
 values for transitions that have constant probability 更多...
 
float64_t * const_b_val
 values for emissions that have constant probability 更多...
 
float64_t * const_p_val
 values for start states that have constant probability 更多...
 
float64_t * const_q_val
 values for end states that have constant probability 更多...
 

构造及析构函数说明

Model ( )

Constructor - initializes all variables/structures.

在文件 HMM.cpp 第 81 行定义.

~Model ( )
virtual

Destructor - cleans up.

在文件 HMM.cpp 第 121 行定义.

成员函数说明

int32_t get_const_a ( int32_t  line,
int32_t  column 
) const

get entry out of const_a matrix

在文件 HMM.h 第 137 行定义.

float64_t get_const_a_val ( int32_t  line) const

get value out of const_a_val vector

在文件 HMM.h 第 161 行定义.

int32_t get_const_b ( int32_t  line,
int32_t  column 
) const

get entry out of const_b matrix

在文件 HMM.h 第 143 行定义.

float64_t get_const_b_val ( int32_t  line) const

get value out of const_b_val vector

在文件 HMM.h 第 167 行定义.

int32_t get_const_p ( int32_t  offset) const

get entry out of const_p vector

在文件 HMM.h 第 149 行定义.

float64_t get_const_p_val ( int32_t  offset) const

get value out of const_p_val vector

在文件 HMM.h 第 173 行定义.

int32_t get_const_q ( int32_t  offset) const

get entry out of const_q vector

在文件 HMM.h 第 155 行定义.

float64_t get_const_q_val ( int32_t  offset) const

get value out of const_q_val vector

在文件 HMM.h 第 179 行定义.

int32_t get_learn_a ( int32_t  line,
int32_t  column 
) const

get entry out of learn_a matrix

在文件 HMM.h 第 113 行定义.

int32_t get_learn_b ( int32_t  line,
int32_t  column 
) const

get entry out of learn_b matrix

在文件 HMM.h 第 119 行定义.

int32_t get_learn_p ( int32_t  offset) const

get entry out of learn_p vector

在文件 HMM.h 第 125 行定义.

int32_t get_learn_q ( int32_t  offset) const

get entry out of learn_q vector

在文件 HMM.h 第 131 行定义.

void set_const_a ( int32_t  offset,
int32_t  value 
)

set value in const_a matrix

在文件 HMM.h 第 225 行定义.

void set_const_a_val ( int32_t  offset,
float64_t  value 
)

set value in const_a_val vector

在文件 HMM.h 第 249 行定义.

void set_const_b ( int32_t  offset,
int32_t  value 
)

set value in const_b matrix

在文件 HMM.h 第 231 行定义.

void set_const_b_val ( int32_t  offset,
float64_t  value 
)

set value in const_b_val vector

在文件 HMM.h 第 255 行定义.

void set_const_p ( int32_t  offset,
int32_t  value 
)

set value in const_p vector

在文件 HMM.h 第 237 行定义.

void set_const_p_val ( int32_t  offset,
float64_t  value 
)

set value in const_p_val vector

在文件 HMM.h 第 261 行定义.

void set_const_q ( int32_t  offset,
int32_t  value 
)

set value in const_q vector

在文件 HMM.h 第 243 行定义.

void set_const_q_val ( int32_t  offset,
float64_t  value 
)

set value in const_q_val vector

在文件 HMM.h 第 267 行定义.

void set_learn_a ( int32_t  offset,
int32_t  value 
)

set value in learn_a matrix

在文件 HMM.h 第 201 行定义.

void set_learn_b ( int32_t  offset,
int32_t  value 
)

set value in learn_b matrix

在文件 HMM.h 第 207 行定义.

void set_learn_p ( int32_t  offset,
int32_t  value 
)

set value in learn_p vector

在文件 HMM.h 第 213 行定义.

void set_learn_q ( int32_t  offset,
int32_t  value 
)

set value in learn_q vector

在文件 HMM.h 第 219 行定义.

void sort_learn_a ( )

sorts learn_a matrix

在文件 HMM.h 第 97 行定义.

void sort_learn_b ( )

sorts learn_b matrix

在文件 HMM.h 第 103 行定义.

类成员变量说明

int32_t* const_a
protected

transitions that have constant probability

在文件 HMM.h 第 327 行定义.

float64_t* const_a_val
protected

values for transitions that have constant probability

在文件 HMM.h 第 340 行定义.

int32_t* const_b
protected

emissions that have constant probability

在文件 HMM.h 第 330 行定义.

float64_t* const_b_val
protected

values for emissions that have constant probability

在文件 HMM.h 第 343 行定义.

int32_t* const_p
protected

start states that have constant probability

在文件 HMM.h 第 333 行定义.

float64_t* const_p_val
protected

values for start states that have constant probability

在文件 HMM.h 第 346 行定义.

int32_t* const_q
protected

end states that have constant probability

在文件 HMM.h 第 336 行定义.

float64_t* const_q_val
protected

values for end states that have constant probability

在文件 HMM.h 第 349 行定义.

int32_t* learn_a
protected

transitions to be learned

在文件 HMM.h 第 308 行定义.

int32_t* learn_b
protected

emissions to be learned

在文件 HMM.h 第 311 行定义.

int32_t* learn_p
protected

start states to be learned

在文件 HMM.h 第 314 行定义.

int32_t* learn_q
protected

end states to be learned

在文件 HMM.h 第 317 行定义.


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

SHOGUN Machine Learning Toolbox - Documentation