SHOGUN
v3.2.0
|
00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 2012 Fernando José Iglesias García 00008 * Copyright (C) 2012 Fernando José Iglesias García 00009 */ 00010 00011 #include <shogun/structure/StateModel.h> 00012 00013 using namespace shogun; 00014 00015 CStateModel::CStateModel() : CSGObject() 00016 { 00017 init(); 00018 } 00019 00020 CStateModel::~CStateModel() 00021 { 00022 } 00023 00024 int32_t CStateModel::get_num_states() const 00025 { 00026 return m_num_states; 00027 } 00028 00029 int32_t CStateModel::get_num_transmission_params() const 00030 { 00031 return m_num_transmission_params; 00032 } 00033 00034 void CStateModel::init() 00035 { 00036 SG_ADD(&m_num_states, "m_num_states", "The number of states", MS_NOT_AVAILABLE); 00037 SG_ADD(&m_num_transmission_params, "m_num_tranmission_params", 00038 "The number of tranmission parameters", MS_NOT_AVAILABLE); 00039 SG_ADD(&m_state_loss_mat, "m_state_loss_mat", "The state loss matrix", 00040 MS_NOT_AVAILABLE); 00041 SG_ADD(&m_p, "m_p", "The distribution of start states", MS_NOT_AVAILABLE); 00042 SG_ADD(&m_q, "m_q", "The distribution of stop states", MS_NOT_AVAILABLE); 00043 00044 m_num_states = 0; 00045 m_num_transmission_params = 0; 00046 } 00047 00048 SGVector< int32_t > CStateModel::get_monotonicity(int32_t num_free_states, 00049 int32_t num_feats) const 00050 { 00051 SGVector< int32_t > ret(num_feats*num_free_states); 00052 ret.zero(); 00053 return ret; 00054 } 00055 00056 SGVector< float64_t > CStateModel::get_start_states() const 00057 { 00058 return m_p; 00059 } 00060 00061 SGVector< float64_t > CStateModel::get_stop_states() const 00062 { 00063 return m_q; 00064 }