Home

Download

Features

Screenshots

Handbook

Browse Source

Authors

SourceForge.net Logo
Hosted by SourceForge.net

OSI Certified


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Search  

statinfo.h

00001 /***************************************************************************
00002                           statinfo.h  -  description
00003                              -------------------
00004     begin                : Sun Jun 2 2002
00005     copyright            : (C) 2002 by Fungmeista
00006     email                : confederacy2@excite.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef STATINFO_H
00019 #define STATINFO_H
00020 
00021 #include <vector>
00022 
00029 class StatInfo
00030 {
00031     public:
00032         StatInfo(){}
00033         ~StatInfo(){}
00034         static int dcompare(const void * a, const void * b);
00035         static double mean(std::vector<double> & xList);
00036         static int items(std::vector<double> & xList);
00037         static double median(std::vector<double> & xList);
00038         static double mode(std::vector<double> & xList);
00039         static double range(std::vector<double> & xList);
00040         static double min(std::vector<double> & xList);
00041         static double max(std::vector<double> & xList);
00042         static double first_quartile(std::vector<double> & xList);
00043         static double third_quartile(std::vector<double> & xList);
00044         static double standard_dev(std::vector<double> & xList);
00045         static double sum(std::vector<double> & xList);
00046         static double median_fit_line(std::vector<double> & xList, std::vector<double> & yList);
00047         static double correlation(std::vector<double> & xList, std::vector<double> & yList);
00048         static double bigger(double,double);
00049         static double smaller(double,double);
00050         static int frequency(std::vector<double> & list, double begin, double end);
00051 };
00052 #endif