#ifndef INCLUDE_RHNN #define INCLUDE_RHNN #include "rneuron.h" #include "rweight.h" #include "pattern.h" #include class RHNN{ private: int K , N , P; Rweight weight ; Rneuron neuron ; Pattern pattern ; public: RHNN( int k , int n , int p , int seed ) ; void setPattern( int p ) ; void run() ; void addnoise( double level ){ neuron.addnoise(level); }; int check( int p ) const; // return number of neurons coinciding with training pattern int unstable() ; // return number of stable neurons in training pattern int noise_reduction( double level ) ; // if recovered, return 1 void printstate() const; void printweight() const; }; #endif