#include <Layer.h>
Inheritance diagram for Layer:
Public Member Functions | |
Layer (int label) | |
Constructs a layer with the given label. | |
virtual | ~Layer () |
deletes all neurons | |
virtual int | getLabel () const |
Returns the label of the layer. | |
virtual uint | getSize () const |
The size of the layer (number of neurons in it). | |
uint | size () const |
complies w/ STL .. | |
virtual void | addNeuron (Neuron *nrn) |
Adds the given neuron to the layer Layer is responsible for deletion. | |
virtual Neuron & | getNeuron (uint i) |
Gives the ith reference in the layer. | |
virtual const Neuron & | getNeuron (uint i) const |
Neuron & | operator[] (uint i) |
const Neuron & | operator[] (uint i) const |
virtual Vector | getActivation () |
The activation vector formed by the activations of individual neurons in the layer. | |
virtual Vector | getOutput () |
The output vector formed by the outputs of individual neurons in the layer. | |
virtual const char * | getClassName () |
Returns "Layer". | |
Static Public Attributes | |
const int | MAX_LAYER_SIZE |
The maximum number of neurons in a layer Needed for some automatic label assignments of neurons and layers in Networks. | |
Protected Attributes | |
int | _label |
The label of the layer. | |
uint | _size |
The number of neurons in the layer. | |
std::vector< Neuron * > | _neurons |
The neurons in this layer. |
|
Constructs a layer with the given label.
|
|
deletes all neurons
|
|
Adds the given neuron to the layer Layer is responsible for deletion.
Reimplemented in InputLayer. |
|
The activation vector formed by the activations of individual neurons in the layer.
|
|
Returns "Layer".
Reimplemented in InputLayer. |
|
Returns the label of the layer.
|
|
|
|
Gives the ith reference in the layer.
|
|
The output vector formed by the outputs of individual neurons in the layer.
|
|
The size of the layer (number of neurons in it).
|
|
Reimplemented in TLayer, TLayer< RecurrentNeuron >, and TLayer< InputNeuron >. |
Here is the call graph for this function:
|
Reimplemented in TLayer, TLayer< RecurrentNeuron >, and TLayer< InputNeuron >. |
Here is the call graph for this function:
|
complies w/ STL ..
|
Here is the call graph for this function:
|
The label of the layer.
|
|
The neurons in this layer.
|
|
The number of neurons in the layer. If you create a sub-class of this class, then the onus of ensuring that this value is consistent lies on you! |
|
The maximum number of neurons in a layer Needed for some automatic label assignments of neurons and layers in Networks.
|