Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

nkern_net.h

Go to the documentation of this file.
00001 
00002 // Name:        nkern_net.h
00003 // Purpose:     Header for nkernel network code
00004 // Author:      Chad Rempp
00005 // Modified by: Chad Rempp
00006 // Created:     03-01-02
00007 // Copyright:   (c) 2003 Chad Rempp
00008 // Licence:     GNU Public License (hey it's what all my friends are doing)
00010 #ifndef NKERN_NET_H
00011 #define NKERN_NET_H
00012 
00013 #include <vector>
00014 #include "nkernel/nkern_neuron.h"
00015 
00016 //using namespace std;
00017 
00019 // Net class Declaration
00021 class Net{
00022 private:
00023        int m_NumInputs;
00024        int m_NumOutputs;
00025        int m_NumHiddenLayers;
00026        int m_NumNeuronsPerLayer;
00027        char name[256];
00028        vector<NeuronLayer> m_vecLayers;
00029 
00030 public:
00031        Net();
00032        Net( int NumInputs,
00033                 int NumOutputs,
00034                 int NumHiddenLayers,
00035                 int NumNeuronsPerLayer);
00036        void CreateNet();
00037        void Net::ModNet(int NumInputs,
00038                         int NumOutputs,
00039                         int NumHiddenLayers,
00040                         int NumNeuronsPerLayer);
00041        vector<float> GetWeights();
00042        int GetNumberOfWeights();
00043        void PutWeights(vector<float> weights);
00044        vector<float> Update(vector<float> inputs);
00045        inline float Sigmoid(float activation, float response);
00046 };
00047 
00048 #endif

Generated on Mon Jun 23 23:09:51 2003 for NeReK Documentation by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002