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

MultiKMean.hpp

00001 #ifndef __MultiKMean__
00002 #define __MultiKMean__
00003 
00023 #include "SeparateGaussianClassifier.hpp"
00024 
00025 class MultiKMean : public SeparateGaussianClassifier
00026 {
00027 private:
00028 
00029 int                             count;
00030 
00031 RealVector*             sumX;           // implicit eX
00032 RealVector*             sumX2;          // implicit eX2
00033 
00034 public:
00035 
00036 MultiKMean(int n);
00037 virtual ~MultiKMean(){delete sumX; delete sumX2;}
00038 
00039 // learning
00040 virtual void start();
00041 
00042 virtual void learn(RealVector& value);
00043 virtual void unlearn(RealVector& value);
00044 
00045 virtual void end();
00046 
00047 virtual int             numberOfCounts(){ return count; }
00048 
00049 virtual void output()
00050         {
00051         printf("A Multi KMean");
00052         }                               
00053 };
00054 
00055 #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