User Manual, Developers Guide and API Documentation

Measurement.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_MEASUREMENT_HPP
00029 #define CONSTANZE_MEASUREMENT_HPP
00030 
00031 #include <CONSTANZE/BaumWelch.hpp>
00032 #include <WNS/pyconfig/View.hpp>
00033 #include <WNS/logger/Logger.hpp>
00034 #include <fstream>
00035 
00036 namespace constanze
00037 {
00038     class Measurement
00039         {
00040         public:
00041 
00042                 Measurement(const wns::pyconfig::View& config);
00043 
00044                 ~Measurement();
00045 
00047         std::vector<double> *boundaryVector;
00048 
00054         HMM*
00055         calculate(int numberOfStates, std::vector<int> *observationVector);
00056 
00058         void
00059         output(std::vector<std::vector<baumWelchDataType>*> *transitionsMatrix,int numberOfStates);
00060 
00062         void output_python(std::vector<std::vector<baumWelchDataType>*> *transitionsMatrix,int numberOfStates,std::string estimationResultFileName);
00063 
00068         int getEstimatorNumberOfStates();
00069 
00074         std::string getMMPPestimationResultFileName();
00075 
00076         private:
00077 
00079         wns::pyconfig::View pyco;
00080 
00082         wns::logger::Logger log;
00083 
00085         std::vector<double> *meanRateVector;
00086 
00090                 int estimatorNumberOfStates;
00091 
00096                 double probeWindow;
00097 
00101         std::string MMPPestimationResultFileName;
00102 
00104                 BaumWelch* baumwelch;
00105 
00106         };
00107 }
00108 
00109 #endif // NOT defined CONSTANZE_MEASUREMENT_HPP
00110 
00111 /*
00112   Local Variables:
00113   mode: c++
00114   fill-column: 80
00115   c-basic-offset: 8
00116   c-comment-only-line-offset: 0
00117   c-tab-always-indent: t
00118   indent-tabs-mode: t
00119   tab-width: 8
00120   End:
00121 */

Generated on Fri May 25 03:32:17 2012 for openWNS by  doxygen 1.5.5