SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StateModel.cpp
Go to the documentation of this file.
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 }

SHOGUN Machine Learning Toolbox - Documentation