Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members Related Pages Search
statinfo.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
|