SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
StateModel.cpp
浏览该文件的文档.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2012 Fernando José Iglesias García
8  * Copyright (C) 2012 Fernando José Iglesias García
9  */
10 
12 
13 using namespace shogun;
14 
16 {
17  init();
18 }
19 
21 {
22 }
23 
25 {
26  return m_num_states;
27 }
28 
30 {
32 }
33 
34 void CStateModel::init()
35 {
36  SG_ADD(&m_num_states, "m_num_states", "The number of states", MS_NOT_AVAILABLE);
37  SG_ADD(&m_num_transmission_params, "m_num_tranmission_params",
38  "The number of tranmission parameters", MS_NOT_AVAILABLE);
39  SG_ADD(&m_state_loss_mat, "m_state_loss_mat", "The state loss matrix",
41  SG_ADD(&m_p, "m_p", "The distribution of start states", MS_NOT_AVAILABLE);
42  SG_ADD(&m_q, "m_q", "The distribution of stop states", MS_NOT_AVAILABLE);
43 
44  m_num_states = 0;
46 }
47 
49  int32_t num_feats) const
50 {
51  SGVector< int32_t > ret(num_feats*num_free_states);
52  ret.zero();
53  return ret;
54 }
55 
57 {
58  return m_p;
59 }
60 
62 {
63  return m_q;
64 }
SGMatrix< float64_t > m_state_loss_mat
Definition: StateModel.h:225
virtual ~CStateModel()
Definition: StateModel.cpp:20
SGVector< float64_t > get_start_states() const
Definition: StateModel.cpp:56
SGVector< float64_t > m_q
Definition: StateModel.h:231
SGVector< float64_t > get_stop_states() const
Definition: StateModel.cpp:61
SGVector< float64_t > m_p
Definition: StateModel.h:228
int32_t get_num_transmission_params() const
Definition: StateModel.cpp:29
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:112
int32_t get_num_states() const
Definition: StateModel.cpp:24
virtual SGVector< int32_t > get_monotonicity(int32_t num_free_states, int32_t num_feats) const
Definition: StateModel.cpp:48
int32_t m_num_transmission_params
Definition: StateModel.h:222
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
#define SG_ADD(...)
Definition: SGObject.h:81

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