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

neuron.h

Go to the documentation of this file.
00001 #ifndef NEURON_H
00002 #define NEURON_H
00003 
00004 //--------------------------neuron.h-----------------------------------------
00005 //
00006 //    NEREK by Chad Rempp
00007 //    March 1 2002
00008 //    Version 0.0.02
00009 //
00010 //    Also Stolen from M Buckland
00011 // 
00012 //    Use to create a feedforward neural network. Train the network by using a
00013 //    GA. There is NO backprop included here. I want to keep it as simple as
00014 //    possible.
00015 //
00016 //-------------------------------------------------------------------------------
00017 
00018 #include <vector>
00019 #include <fstream>
00020 #include <math.h>
00021 
00022 #include "nerek.h"
00023 
00024 using namespace std;
00025 
00026 
00027 
00028 //for tweaking the sigmoid response curve
00029 #define ACTIVATION_RESPONSE             1.0f
00030 #define BIAS                            -1.0f
00031 
00032 
00033 
00034 
00035 //------------------define neuron struct
00036 
00037 struct Neuron
00038 {
00039     int             m_NumInputs;
00040     vector<float>   m_vecWeight;
00041     Neuron(int NumInputs);
00042 };
00043 
00044 
00045 
00046 //---------------struct to hold a layer of neurons.
00047 
00048 struct NeuronLayer
00049 {
00050     vector<Neuron>      m_vecNeurons;
00051     int                 m_NumNeurons;
00052     int                 m_NumInputsPerNeuron;
00053     NeuronLayer(int NumNeurons, 
00054                 int NumInputsPerNeuron);
00055 };
00056 
00057 
00058 
00059 #endif

Generated on Mon Jun 9 19:13:21 2003 for NeReK Documentation by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002