SuperNN  1.0.0
Public Member Functions | Public Attributes | List of all members
SuperNN::Connection Struct Reference

Synaptic connection between two neurons. More...

Public Member Functions

 Connection ()
 
 Connection (unsigned _l, unsigned _n, double _w=(Utils::rand_double(0.5)-0.25))
 Constructor. More...
 
virtual ~Connection ()
 

Public Attributes

double aux1
 Auxiliary storage 1, used by some training algorithms. More...
 
double aux2
 Auxiliary storage 2, used by some training algorithms. More...
 
double derror
 Accumulated partial error derivative in respect to the connection weight. More...
 
unsigned to_layer
 Layer where the target neuron is located. More...
 
unsigned to_neuron
 Position of the target neuron in it's layer. More...
 
double weight
 Weight. More...
 

Detailed Description

Synaptic connection between two neurons.

Definition at line 32 of file neuron.hpp.

Constructor & Destructor Documentation

SuperNN::Connection::Connection ( )

Definition at line 24 of file neuron.cpp.

SuperNN::Connection::~Connection ( )
virtual

Definition at line 28 of file neuron.cpp.

SuperNN::Connection::Connection ( unsigned  _l,
unsigned  _n,
double  _w = (Utils::rand_double(0.5) - 0.25) 
)

Constructor.

Parameters
_lLayer where the target neuron is located
_nPosition of the target neuron in it's layer
_wConnection weight
Returns
Connection instance

Definition at line 32 of file neuron.cpp.

Member Data Documentation

double SuperNN::Connection::aux1

Auxiliary storage 1, used by some training algorithms.

Definition at line 55 of file neuron.hpp.

double SuperNN::Connection::aux2

Auxiliary storage 2, used by some training algorithms.

Definition at line 58 of file neuron.hpp.

double SuperNN::Connection::derror

Accumulated partial error derivative in respect to the connection weight.

Definition at line 52 of file neuron.hpp.

unsigned SuperNN::Connection::to_layer

Layer where the target neuron is located.

Definition at line 61 of file neuron.hpp.

unsigned SuperNN::Connection::to_neuron

Position of the target neuron in it's layer.

Definition at line 64 of file neuron.hpp.

double SuperNN::Connection::weight

Weight.

Definition at line 49 of file neuron.hpp.