Main Page | Namespace List | Data Structures | File List | Data Fields | Globals

Neuron Class Reference

#include <neuron.h>


Public Member Functions

 Neuron (int _id)
int getId ()
double getOutValue ()
double getGradientValue ()
void setOutValue (double v)
void setGradientValue (double v)
void draw (int selected, const bool names=false)
float getX (void)
float getY (void)
float getZ (void)
void setX (float x)
void setY (float y)
void setZ (float z)
ManipulatedFrame * frame (void)
void addAxonIn (Axon *a)
void removeAxonIn (int id_ax)
void addAxonOut (Axon *a)
void removeAxonOut (int id_ax)
void removeAxons ()
void setOutValueTemp (double val)
void incOutValueTemp (double val)
void setGradientValueTemp (double val)
void incGradientValueTemp (double val)
double sigmoide (double val)
double sigmoideDerived (double val)
void computeOutValue ()
void computeGradientValue (double err)
void forwardPropagation ()
void gradientBackPropagation ()


Constructor & Destructor Documentation

Neuron::Neuron int  _id  ) 
 

Definition at line 13 of file neuron.cpp.


Member Function Documentation

void Neuron::addAxonIn Axon a  ) 
 

Axon relative functions.

Definition at line 94 of file neuron.cpp.

Referenced by Network::addAxon().

void Neuron::addAxonOut Axon a  ) 
 

Definition at line 109 of file neuron.cpp.

Referenced by Network::addAxon().

void Neuron::computeGradientValue double  err  ) 
 

Definition at line 168 of file neuron.cpp.

References sigmoideDerived().

void Neuron::computeOutValue  ) 
 

Definition at line 164 of file neuron.cpp.

References sigmoide().

void Neuron::draw int  selected,
const bool  names = false
 

Graphism relative functions.

Definition at line 41 of file neuron.cpp.

References Network::displayneurons(), Network::displayvalues(), Network::getLayerNumTheNeuronIsOn(), inn, network, Network::neuronsize(), and Network::shininess().

void Neuron::forwardPropagation  ) 
 

Definition at line 173 of file neuron.cpp.

References sigmoide().

ManipulatedFrame * Neuron::frame void   ) 
 

Definition at line 90 of file neuron.cpp.

Referenced by Axon::draw().

double Neuron::getGradientValue  ) 
 

Definition at line 29 of file neuron.cpp.

Referenced by Axon::changeWeight(), and Axon::gradientPropagation().

int Neuron::getId  ) 
 

Accessors.

Definition at line 21 of file neuron.cpp.

double Neuron::getOutValue  ) 
 

Definition at line 25 of file neuron.cpp.

Referenced by Axon::changeWeight(), and Axon::forwardPropagation().

float Neuron::getX void   ) 
 

Definition at line 66 of file neuron.cpp.

float Neuron::getY void   ) 
 

Definition at line 68 of file neuron.cpp.

float Neuron::getZ void   ) 
 

Definition at line 70 of file neuron.cpp.

void Neuron::gradientBackPropagation  ) 
 

Definition at line 180 of file neuron.cpp.

References sigmoideDerived().

void Neuron::incGradientValueTemp double  val  ) 
 

Definition at line 151 of file neuron.cpp.

Referenced by Axon::gradientPropagation().

void Neuron::incOutValueTemp double  val  ) 
 

Definition at line 143 of file neuron.cpp.

Referenced by Axon::forwardPropagation().

void Neuron::removeAxonIn int  id_ax  ) 
 

Definition at line 98 of file neuron.cpp.

void Neuron::removeAxonOut int  id_ax  ) 
 

Definition at line 113 of file neuron.cpp.

void Neuron::removeAxons  ) 
 

Definition at line 124 of file neuron.cpp.

References network, and Network::removeAxon().

void Neuron::setGradientValue double  v  ) 
 

Definition at line 37 of file neuron.cpp.

void Neuron::setGradientValueTemp double  val  ) 
 

Definition at line 147 of file neuron.cpp.

void Neuron::setOutValue double  v  ) 
 

Definition at line 33 of file neuron.cpp.

void Neuron::setOutValueTemp double  val  ) 
 

Learning relative functions.

Definition at line 139 of file neuron.cpp.

void Neuron::setX float  x  ) 
 

Definition at line 72 of file neuron.cpp.

Referenced by Layer::addNeuron().

void Neuron::setY float  y  ) 
 

Definition at line 78 of file neuron.cpp.

void Neuron::setZ float  z  ) 
 

Definition at line 84 of file neuron.cpp.

Referenced by Layer::addNeuron().

double Neuron::sigmoide double  val  ) 
 

Definition at line 155 of file neuron.cpp.

References Network::getK(), and network.

Referenced by computeOutValue(), forwardPropagation(), and sigmoideDerived().

double Neuron::sigmoideDerived double  val  ) 
 

Definition at line 159 of file neuron.cpp.

References sigmoide().

Referenced by computeGradientValue(), and gradientBackPropagation().


The documentation for this class was generated from the following files:
Generated on Fri Dec 3 14:57:56 2004 for INN by doxygen 1.3.6