00001 #ifndef NEURON_H
00002 #define NEURON_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00029 #define ACTIVATION_RESPONSE 1.0f
00030 #define BIAS -1.0f
00031
00032
00033
00034
00035
00036
00037 struct Neuron
00038 {
00039 int m_NumInputs;
00040 vector<float> m_vecWeight;
00041 Neuron(int NumInputs);
00042 };
00043
00044
00045
00046
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