Main Page | Class Hierarchy | Class List | File List | Class Members

stat.h

00001 /* 00002 * Copyright (C) 2006 Dip. Ing. dell'Informazione, University of Pisa, Italy 00003 * http://info.iet.unipi.it/~cng/ns2measure/ns2measure.html 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA, USA 00018 */ 00019 00032 #ifndef __MEASURE_STAT_H 00033 #define __MEASURE_STAT_H 00034 00035 #include <config.h> 00036 #include <object.h> 00037 00038 #include <cmath> 00039 #include <vector> 00040 00042 class Stat : public Object { 00044 static double t_table[30][4]; 00046 00052 static double t_student(double cl, int df); 00053 public: 00055 Stat () : Object ("Stat") { } 00057 ~Stat () { } 00058 00060 00064 static double confInterval (bool& valid, const std::vector<sample_t>& samples, double cl); 00066 00069 static double mean (bool& valid, const std::vector<sample_t>& samples); 00070 }; 00071 00072 #endif // __MEASURE_STAT_H

Generated on Tue May 30 08:09:56 2006 for ns2measure by doxygen 1.3.7