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

Layer Class Reference

#include <layer.h>


Public Member Functions

 Layer (int _id)
int getId ()
list< Neuron * > * getNeurons ()
int getNum ()
NeurongetNeuronFromId (int id_neur)
void draw (int selected, const bool names=false)
void drawNeurons (int selected, const bool names=false)
void drawLayer (const bool names=false)
ManipulatedFrame * frame (int id)
int nbNeurons ()
void addNeuron (int id)
void addNeuron (int id, float x, float z)
void removeNeuron (int id)
void removeNeurons ()
bool existNeuron (int id)
void setNeuronsLinePos (int n, list< Neuron * >::iterator *iter, float z)
void updateNeuronsPos (void)
void clearAxons ()
void resetAllValues ()
void resetTempValues ()
void forwardPropagation ()
void gradientBackPropagation ()
void description ()


Constructor & Destructor Documentation

Layer::Layer int  _id  ) 
 

Definition at line 11 of file layer.cpp.


Member Function Documentation

void Layer::addNeuron int  id,
float  x,
float  z
 

Definition at line 89 of file layer.cpp.

References Neuron::setX(), and Neuron::setZ().

void Layer::addNeuron int  id  ) 
 

Definition at line 82 of file layer.cpp.

References updateNeuronsPos().

Referenced by Network::addNeuron().

void Layer::clearAxons  ) 
 

Axons relative functions.

Definition at line 221 of file layer.cpp.

void Layer::description  ) 
 

Misc functions.

Definition at line 257 of file layer.cpp.

Referenced by Network::description().

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

Graphism relative functions.

Definition at line 36 of file layer.cpp.

References Network::displaylayers(), drawLayer(), getNum(), and network.

Referenced by Network::draw().

void Layer::drawLayer const bool  names = false  ) 
 

Definition at line 53 of file layer.cpp.

References network, and Network::shininess().

Referenced by draw().

void Layer::drawNeurons int  selected,
const bool  names = false
 

Definition at line 47 of file layer.cpp.

Referenced by Network::draw().

bool Layer::existNeuron int  id  ) 
 

Definition at line 121 of file layer.cpp.

Referenced by Network::existNeuron(), Network::getLayerNumTheNeuronIsOn(), Network::getNeuronFromId(), and Network::removeNeuron().

void Layer::forwardPropagation  ) 
 

Definition at line 245 of file layer.cpp.

Referenced by Network::forwardPropagation().

ManipulatedFrame * Layer::frame int  id  ) 
 

Definition at line 70 of file layer.cpp.

Referenced by Network::frame().

int Layer::getId  ) 
 

Accessors.

Definition at line 17 of file layer.cpp.

Referenced by Network::addNeuron(), Network::clearLayer(), Network::existLayer(), Network::getLayer(), Network::getLayerNumFromLayerId(), and Network::getNbNeurons().

Neuron * Layer::getNeuronFromId int  id_neur  ) 
 

Definition at line 29 of file layer.cpp.

Referenced by Network::getNeuronFromId().

list< Neuron * > * Layer::getNeurons  ) 
 

Definition at line 21 of file layer.cpp.

Referenced by Network::getOutValues(), Network::initLayerIn(), Network::initLayerOutGradient(), and Network::link2Layers().

int Layer::getNum  ) 
 

Definition at line 25 of file layer.cpp.

References Network::getLayerNumFromLayerId(), and network.

Referenced by draw(), and setNeuronsLinePos().

void Layer::gradientBackPropagation  ) 
 

Definition at line 251 of file layer.cpp.

Referenced by Network::gradientBackPropagation().

int Layer::nbNeurons  ) 
 

Neurons relative functions.

Definition at line 78 of file layer.cpp.

Referenced by Network::getNbNeurons(), Network::nbNeurons(), Network::readExampleFile(), and Network::readTestFile().

void Layer::removeNeuron int  id  ) 
 

Definition at line 98 of file layer.cpp.

Referenced by Network::removeNeuron().

void Layer::removeNeurons  ) 
 

Definition at line 112 of file layer.cpp.

Referenced by Network::clearLayer().

void Layer::resetAllValues  ) 
 

Learning relative functions.

Definition at line 227 of file layer.cpp.

Referenced by Network::resetAllValues().

void Layer::resetTempValues  ) 
 

Definition at line 237 of file layer.cpp.

Referenced by Network::resetTempValues().

void Layer::setNeuronsLinePos int  n,
list< Neuron * >::iterator *  iter,
float  z
 

Definition at line 128 of file layer.cpp.

References getNum(), network, and Network::neuronsize().

Referenced by updateNeuronsPos().

void Layer::updateNeuronsPos void   ) 
 

Definition at line 175 of file layer.cpp.

References network, Network::neuronsize(), and setNeuronsLinePos().

Referenced by addNeuron().


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