00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef INC_SML_HISTO_H
00022 #define INC_SML_HISTO_H
00023
00024 #ifndef INC_MI32_STDDEFNS_H
00025 #include <mi32/stddefns.h>
00026 #endif
00027
00028 #ifdef RVCSYSDLL
00029 #define RVCSYSLIBEXPORT MI_DLLEXPORT
00030 #define RVCSYSLIBCLASSEXPORT MI_DLLCLASSEXPORT
00031 #else
00032 #define RVCSYSLIBEXPORT MI_DLLIMPORT
00033 #define RVCSYSLIBCLASSEXPORT MI_DLLCLASSIMPORT
00034 #endif
00035
00036 namespace SML {
00037
00038 #ifndef GENERATING_DOXYGEN_OUTPUT
00039 struct HISTOBUCKET {
00040 double val;
00041 INT32 count;
00042 HISTOBUCKET *next;
00043 };
00044
00045 class RVCSYSLIBCLASSEXPORT HISTO {
00046 public:
00047 INT32 Count[256];
00048 HISTOBUCKET *Others;
00049
00050 HISTO();
00051 ~HISTO();
00052 void AddValue(double);
00053 double GetMajority() const;
00054 double GetMinority() const;
00055 double GetMedian() const;
00056 double GetCount() const;
00057 };
00058 #endif // GENERATING_DOXYGEN_OUTPUT
00059
00060 }
00061
00062 typedef SML::HISTO SMLHISTO;
00063 typedef SML::HISTOBUCKET SMLHISTOBUCKET;
00064
00065 #undef RVCSYSLIBEXPORT
00066 #undef RVCSYSLIBCLASSEXPORT
00067
00068 #endif // INC_SML_HISTO_H
00069
00070