00001 #ifndef NetParams_H 00002 #define NetParams_H 00003 00004 #include "Data.h" 00005 #include "Mapcode.h" 00006 00007 00008 #include <string> 00009 00010 using namespace std; 00011 00020 class NetParams { 00021 protected: 00022 string _learnType; 00023 int _learning_type; 00024 int _init_type; 00025 Value_Type _init_learning_rate; 00026 Value_Type _init_neighbor; 00027 Mapcode * _mapcode; 00028 SOMData * _data; 00029 int _num_iterations; 00030 TMatrix _delta; 00031 00032 public: 00033 00035 void setMapcode( Mapcode * mapcode ); 00036 00038 void setData( SOMData * data ); 00039 00041 void setDelta( TMatrix delta ); 00042 00044 TMatrix getDelta() const; 00045 00047 NetParams(); 00048 00050 Mapcode * getMapcode() const; 00051 00053 SOMData * getData() const; 00054 00056 int getNumIterations(); 00057 00059 void setNumIterations( int i ); 00060 00062 int getInitType(); 00063 00065 void setInitType( int init ); 00066 00068 Value_Type getInitLearningRate(); 00069 00071 void setInitLearningRate( Value_Type init_rate ); 00072 00074 Value_Type getInitNeighbor(); 00075 00077 void setInitNeighbor( Value_Type init_neighbor ); 00078 00080 int getLearningType(); 00081 00083 void setLearningType( int t ); 00084 00086 void setLearnType( string str ); 00087 00089 string getLearnType(); 00090 }; 00091 00092 00093 #endif