#include <amygdala/layer.h>
Public Types | |
typedef vector< Neuron * >::iterator | iterator |
typedef vector< Neuron * >::const_iterator | const_iterator |
typedef vector< Neuron * >::reverse_iterator | reverse_iterator |
typedef vector< Neuron * >::const_reverse_iterator | const_reverse_iterator |
Public Methods | |
Layer () | |
~Layer () | |
void | AddNeuron (Neuron *nrn) |
void | AddNeuronVector (vector< Neuron * > nrnVec) |
void | LayerName (string name) |
string | LayerName () |
void | SetLayerId (unsigned int id) |
unsigned int | LayerId () |
void | SetLayerType (LayerType ltype) |
LayerType | GetLayerType () |
void | SetPercentInhibitory (float percent) |
bool | ConnectLayers (Layer *output, UniConnectType parms, float pctInhibitory=0.0) |
bool | ConnectLayers (Layer *output, GaussConnectType parms, float pctInhibitory=0.0) |
bool | SetLayerConstants (LayerConstants lconst) |
LayerConstants | GetLayerConstants () |
void | SetSynapticDelay (AmTimeInt delay) |
AmTimeInt | GetSynapticDelay () const |
unsigned int | size () |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
Neuron * | operator[] (unsigned int &index) |
Protected Methods | |
void | SetLayerParent (Network *parent) |
bool | ConnectionInhibitory (float &pctInhibitory) |
Protected Attributes | |
vector< Neuron * > | nrnLayer |
Network * | parentNet |
string | layerName |
LayerType | layerType |
unsigned int | layerId |
float | learningConst |
float | memTimeConst |
float | synTimeConst |
float | restPtnl |
float | thresholdPtnl |
bool | constantsSet |
float | percentInhib |
AmTimeInt | synapticDelay |
Friends | |
class | Network |
The only limitation currently is that unlayered Networks cannot be loaded or saved. This limitation should be addressed in 0.3.
|
Add a pre instantiated Neuron to the Layer. This doesn't affect the ownership of the Neuron until the Layer is added to a Network. At that point, the Network will assume ownership of the pointer. Neurons that are added to layers do not need to be added to a Network separately.
|
|
Add pre instantiated Neuron objects to the Layer. This doesn't affect the ownership of the Neuron until the Layer is added to a Network. At that point, the Network will assume ownership of the pointer. Neurons that are added to layers do not need to be added to a Network separately.
|
|
|
|
|
|
Connect this layer to to another layer.
|
|
Connect this layer to to another layer.
|
|
|
|
|
|
Retrieve the set of constants that are common to all Neurons in a layer if they have been previously set.
|
|
Get the layer type
|
|
Get the default spike transmission delay.
|
|
Get the numeric ID of the Layer.
|
|
Retrieve the name of the Layer,
|
|
Set the name of the Layer. This is optional, but it can be useful after reloading a Network from a file.
|
|
|
|
|
|
|
|
|
|
|
|
Set constants that should be common to all neurons in a layer, such as time constants and learning constants. This is optional and layers can be constructed without requiring that all member Neurons have the constants.
|
|
Set the unique numeric ID for the Layer.
|
|
Designate what kind of layer this is
|
|
Set the percentage of neurons that should be inhibitory in the layer. This value can be overridden if it is also set in ConnectLayers if Neuron::EnforceSign() has not been called.
|
|
Set the default spike transmission delay.
|
|
|