User Manual, Developers Guide and API Documentation

moments.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 WNS_EVALUATION_STATISTICS_MOMENTS_HPP
00029 #define WNS_EVALUATION_STATISTICS_MOMENTS_HPP
00030 
00031 #include <WNS/evaluation/statistics/stateval.hpp>
00032 
00033 namespace wns { namespace evaluation { namespace statistics {
00034 
00039             class Moments: public StatEval
00040             {
00041             public:
00042 
00043                 Moments();
00044 
00045                 Moments(std::string name,
00046                         std::string description,
00047                         formatType  format);
00048 
00049                 Moments(const wns::pyconfig::View& config);
00050 
00051                 virtual ~Moments();
00052 
00053                 virtual void
00054                 print(std::ostream& stream = std::cout) const;
00055 
00059                 virtual void
00060                 put(double xI, double wI);
00061 
00065                 virtual void
00066                 put(double xI);
00067 
00076                 virtual double
00077                 mean() const;
00078 
00086                 virtual double
00087                 variance() const;
00088 
00092                 virtual double
00093                 getConfidenceInterval95Mean() const;
00094 
00098                 virtual double
00099                 getConfidenceInterval99Mean() const;
00100 
00104                 virtual double
00105                 M2() const;
00106 
00107 
00111                 virtual double
00112                 M3() const;
00113 
00117                 virtual void
00118                 reset();
00119 
00120             protected:
00121 
00125                 double wSum_;
00126 
00127             private:
00128 
00129                 double
00130                 getConfidenceIntervalMean(double x) const;
00131             };
00132 
00133 } // statistics
00134 } // evaluation
00135 } // wns
00136 
00137 #endif  // WNS_EVALUATION_STATISTICS_MOMENTS_HPP
00138 
00139 
00140 
00141 

Generated on Sun May 27 03:31:39 2012 for openWNS by  doxygen 1.5.5