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

MonoKMean.hpp

00001 #ifndef __MonoKMean__
00002 #define __MonoKMean__
00003 
00023 #include "MonoGaussianClassifier.hpp"
00024 
00025 class MonoKMean : public MonoGaussianClassifier
00026 {
00027 private:
00028 
00029 int                     count;
00030 
00031 double          sumX;           // implicit eX
00032 double          sumX2;          // implicit eX2
00033 
00034 
00035 public:
00036 
00037 
00038 MonoKMean():MonoGaussianClassifier()
00039                         {count=0; sumX=0.0; sumX2=0.0;}
00040 virtual ~MonoKMean(){}
00041 
00042 // learning
00043 virtual void start();
00044 
00045 virtual void learn(double value);
00046 virtual void unlearn(double value);
00047 
00048 virtual void end();
00049 
00050 virtual int             numberOfCounts(){ return count; }
00051 
00052 virtual void output()
00053         {
00054         printf("A Mono KMean");
00055         }                               
00056 };
00057 
00058 #endif
SourceForge.net Logo
Restoreinpaint sourceforge project `C++/Java Image Processing, Restoration, Inpainting Project'.

Bernard De Cuyper: Open Project Leader: Concept, design and development.
Bernard De Cuyper & Eddy Fraiha 2002, 2003. Bernard De Cuyper 2004. Open and free, for friendly usage only.
Modifications on Belgium ground of this piece of artistic work, by governement institutions or companies, must be notified to Bernard De Cuyper.
bern_bdc@hotmail.com