00001 #ifndef Mapcode_H
00002 #define Mapcode_H
00003
00004 #include "defs.h"
00005 #include "util.h"
00006 #include "TopolParams.h"
00007
00016 class Mapcode {
00017 private:
00018 TMatrix _codebook;
00019 int _dimension;
00020 int _dimensions[MaxDimension];
00021 int _lattice;
00022 int _neighbor_type;
00023 TLabel _label;
00024 TMatrix _cluster_label;
00025 TopolParams _topol;
00026 int _numvar;
00027 public:
00028
00030 void CreateCodebook( int size, int dimension );
00031
00033 void setNumVar( int );
00034
00036 int getNumVar() const;
00037
00039 void setTopolParamsText( string str );
00040
00042 TopolParams getTopolParams();
00043
00044
00045 void setClusterLabel( TMatrix cl );
00046
00048 TMatrix getClusterLabel();
00049
00051 TMatrix getCodebook() const;
00052
00054 void setCodebook( TMatrix codebook );
00055
00057 int getDimension() const;
00058
00060 void setDimension( int d );
00061
00063 int getDimensions( int index ) const;
00064
00066 void setDimensions( int index, int value );
00067
00069 int getLattice() const;
00070
00072 void setLattice( int l );
00073
00075 int getNeighborType() const;
00076
00078 void setNeighborType( int n );
00079
00081 int getMapSize() const;
00082
00084 int* getDimensions();
00085
00088 TLabel getLabel();
00089
00091 void setLabel( TLabel t );
00092
00094 void setLattice( string str );
00095
00097 void setNeighborType( string str );
00098
00099 };
00100
00101
00102
00103 #endif