Main Page | Modules | Data Structures | File List | Globals | Related Pages

stats.h

Go to the documentation of this file.
00001 #ifndef STATSH
00002 #define STATSH
00003 
00023 typedef struct _StatTracker_ {
00024    long n;
00025    double sum;
00026    double sumSquare;
00027 } StatTrackerStruct, *StatTracker;
00028 
00030 StatTracker StatTrackerNew(void);
00031 
00033 void StatTrackerFree(StatTracker st);
00034 
00036 void StatTrackerAddSample(StatTracker st, double x);
00037 
00044 double StatTrackerGetMean(StatTracker st);
00045 
00051 double StatTrackerGetVariance(StatTracker st);
00052 
00058 double StatTrackerGetStdev(StatTracker st);
00059 
00061 long StatTrackerGetNumSamples(StatTracker st);
00062 
00069 double StatTrackerGetNormalBound(StatTracker st, double delta);
00070 
00078 double StatGetNormalBound(double variance, long n, double delta);
00079 
00080 
00087 double StatHoeffdingBoundOne(double range, double delta, long n);
00088 
00095 double StatHoeffdingBoundTwo(double range, double delta, long n);
00096 
00101 float StatLogGamma(float xx);
00102 
00103 #endif /* STATSH */

Generated for VFML by doxygen hosted by SourceForge.net Logo