Main Page   Class Hierarchy   Compound List   File List   Compound Members  

CDbw.h

00001 #ifndef CDbw_H
00002 #define CDbw_H
00003 
00004 #include "Som.h"
00005 #include "Defs.h"
00006 
00021 class CDbw {
00022 
00023 public:
00024 
00026         CDbw( SOM * som, TIntVector cluster, int num_clusters ) : som(som), v(cluster) , c(num_clusters)
00027         {
00028                 d = som->getData()->getDimension();
00029                 m = som->getMapcode()->getMapSize();
00030                 n = som->getData()->getDataSize();
00031                 entries                 = som->getData()->getEntries();
00032                 codebook                = som->getMapcode()->getCodebook();
00033                 entries_label   = som->getData()->getLabel();
00034                 codebook_label  = som->getMapcode()->getLabel();
00035                 Init();
00036         };
00037 
00039         Value_Type Index();
00040 
00041 private:
00042         // Init variables
00043         void Init();
00044         void getStdev_v();
00045         TMatrix getClose_rep(int c_i, int c_j);
00046         Value_Type getDensity( TMatrix close_rep, int c_i, int c_j );
00047         Value_Type Inter_dens();
00048         Value_Type Sep();
00049         Value_Type getDensity_v( int c_i );
00050         Value_Type Intra_dens();
00051         
00052         // Overal average standard deviation
00053         Value_Type stdev();
00054 
00055         TIntVector v;
00056         TMatrix stdev_v;
00057         TVector stdev_vv;
00058         TMatrix mean_v;
00059         TVector num_v;  
00060         int c;
00061         int d;
00062         int m;
00063         int n;
00064         TMatrix entries;
00065         TMatrix codebook;
00066         TvecLabel entries_label;
00067         TLabel  codebook_label;
00068         SOM * som;
00069 };
00070 
00071 
00072 #endif

Generated on Thu Apr 8 15:04:10 2004 for SOMCode by doxygen1.2.18