User Manual, Developers Guide and API Documentation

HMM.hpp

Go to the documentation of this file.
00001 /*******************************************************************************
00002  * This file is part of openWNS (open Wireless Network Simulator)
00003  * _____________________________________________________________________________
00004  *
00005  * Copyright (C) 2004-2007
00006  * Chair of Communication Networks (ComNets)
00007  * Kopernikusstr. 16, D-52074 Aachen, Germany
00008  * phone: ++49-241-80-27910,
00009  * fax: ++49-241-80-22242
00010  * email: info@openwns.org
00011  * www: http://www.openwns.org
00012  * _____________________________________________________________________________
00013  *
00014  * openWNS is free software; you can redistribute it and/or modify it under the
00015  * terms of the GNU Lesser General Public License version 2 as published by the
00016  * Free Software Foundation;
00017  *
00018  * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY
00019  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
00020  * A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00021  * details.
00022  *
00023  * You should have received a copy of the GNU Lesser General Public License
00024  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00025  *
00026  ******************************************************************************/
00027 
00028 #ifndef CONSTANZE_HMM_HPP
00029 #define CONSTANZE_HMM_HPP
00030 
00031 #include <vector>
00032 
00033 namespace constanze
00034 {
00035 
00036     // comparision the result generated from data type double and long double
00037     //typedef double baumWelchDataType;
00038     typedef long double baumWelchDataType;
00039 
00041     class HMM
00042         {
00043 
00044           public:
00045 
00047         HMM(int numberOfStates, std::vector<std::vector<baumWelchDataType>*> *transitionsMatrix, std::vector<std::vector<baumWelchDataType>*> *observationMatrix,std::vector<baumWelchDataType> *startStateProbability);
00048 
00050         HMM(int numberOfStates);
00051 
00052         ~HMM();
00053 
00055         int
00056         getNumberOfStates();
00057 
00059         baumWelchDataType
00060         getStartStateProbability(int index);
00061 
00063         baumWelchDataType
00064         getElementInTransitionsMatrix(int row, int column);
00065 
00067         baumWelchDataType
00068         getElementInObservationMatrix(int row, int column);
00069 
00073         std::vector<std::vector<baumWelchDataType>*>*
00074         getTransitionsMatrix();
00075 
00076 
00077     private:
00078 
00080         int numberOfStates;
00081 
00083         std::vector<std::vector<baumWelchDataType>*> *transitionsMatrix;
00084 
00086         std::vector<std::vector<baumWelchDataType>*> *observationMatrix;
00087 
00089         std::vector<baumWelchDataType> *startStateProbability;
00090 
00091         };
00092 }
00093 
00094 #endif // NOT defined CONSTANZE_HMM_HPP
00095 
00096 /*
00097   Local Variables:
00098   mode: c++
00099   fill-column: 80
00100   c-basic-offset: 8
00101   c-comment-only-line-offset: 0
00102   c-tab-always-indent: t
00103   indent-tabs-mode: t
00104   tab-width: 8
00105   End:
00106 */

Generated on Thu May 24 03:32:15 2012 for openWNS by  doxygen 1.5.5