Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
Loading...
Searching...
No Matches
AllIZHNeurons Class Reference
Inheritance diagram for AllIZHNeurons:
Collaboration diagram for AllIZHNeurons:

Public Member Functions

virtual void setupVertices () override
 Setup the internal structure of the class (allocate memories).
 
virtual void printParameters () const override
 
virtual void createAllVertices (Layout &layout) override
 
virtual string toString (int index) const override
 
virtual void deserialize (istream &input) override
 
virtual void serialize (ostream &output) const override
 
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 
- Public Member Functions inherited from AllIFNeurons
virtual void loadParameters ()
 
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 
The membrane time constant f$ (R_m \cdot C_m)\f$ vector< BGFLOAT > Tau_
 
template<class Archive >
Cereal serialization method void serialize (Archive &archive)
 
- Public Member Functions inherited from AllSpikingNeurons
void clearSpikeCounts ()
 Clear the spike counts out of all Neurons.
 
virtual void registerHistoryVariables () override
 
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 
virtual void advanceVertices (AllEdges &synapses, const EdgeIndexMap &edgeIndexMap)
 
uint64_t getSpikeHistory (int index, int offIndex)
 
- Public Member Functions inherited from AllVertices
virtual void loadEpochInputs (uint64_t currentStep, uint64_t endStep)
 
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 

Static Public Member Functions

static AllVerticesCreate ()
 

Public Attributes

vector< BGFLOAT > Aconst_
 A constant (0.02, 01) describing the coupling of variable u to Vm.
 
vector< BGFLOAT > Bconst_
 A constant controlling sensitivity of u.
 
vector< BGFLOAT > Cconst_
 A constant controlling reset of Vm.
 
vector< BGFLOAT > Dconst_
 A constant controlling reset of u.
 
vector< BGFLOAT > u_
 internal variable.
 
vector< BGFLOAT > C3_
 Internal constant for the exponential Euler integration.
 
- Public Attributes inherited from AllIFNeurons
vector< BGFLOAT > Trefract_
 The length of the absolute refractory period. [units=sec; range=(0,1);].
 
vector< BGFLOAT > Vthresh_
 If $V_m$ exceeds $V_{thresh}$ a spike is emmited. [units=V; range=(-10,100);].
 
vector< BGFLOAT > Vrest_
 The resting membrane voltage. [units=V; range=(-1,1);].
 
vector< BGFLOAT > Vreset_
 The voltage to reset $V_m$ to after a spike. [units=V; range=(-1,1);].
 
vector< BGFLOAT > Vinit_
 The initial condition for $V_m$ at time $t=0$. [units=V; range=(-1,1);].
 
vector< BGFLOAT > Cm_
 
vector< BGFLOAT > Rm_
 The membrane resistance $R_m$ [units=Ohm; range=(0,1e30)].
 
vector< BGFLOAT > Inoise_
 The standard deviation of the noise to be added each integration time constant. [range=(0,1); units=A;].
 
vector< BGFLOAT > Iinject_
 A constant current to be injected into the LIF neuron. [units=A; range=(-1,1);].
 
vector< BGFLOAT > Isyn_
 
vector< int > numStepsInRefractoryPeriod_
 The remaining number of time steps for the absolute refractory period.
 
vector< BGFLOAT > C1_
 Internal constant for the exponential Euler integration of f$V_m .
 
Internal constant for the exponential Euler integration of f$V_m f$ vector< BGFLOAT > C2_
 
Internal constant for the exponential Euler integration of f$V_m f$ vector< BGFLOAT > I0_
 
The membrane voltage f$V_m f$[readonly;units=V;] vector< BGFLOAT > Vm_
 
- Public Attributes inherited from AllSpikingNeurons
vector< bool > hasFired_
 The booleans which track whether the neuron has fired.
 
vector< EventBuffervertexEvents_
 Holds at least one epoch's worth of event times for every vertex.
 
- Public Attributes inherited from AllVertices
vector< BGFLOAT > summationPoints_
 

Protected Member Functions

virtual void advanceNeuron (int index)
 
virtual void fire (int index)
 
void createNeuron (int neuronIndex, Layout &layout)
 
void setNeuronDefaults (int index)
 
virtual void initNeuronConstsFromParamValues (int neuronIndex, BGFLOAT deltaT) override
 
void readNeuron (istream &input, int index)
 
void writeNeuron (ostream &output, int index) const
 
- Protected Member Functions inherited from AllIFNeurons
void createNeuron (int neuronIndex, Layout &layout)
 
void setNeuronDefaults (int index)
 
void readNeuron (istream &input, int i)
 
void writeNeuron (ostream &output, int i) const
 
- Protected Member Functions inherited from AllSpikingNeurons

Additional Inherited Members

- Protected Attributes inherited from AllSpikingNeurons
bool fAllowBackPropagation_
 
- Protected Attributes inherited from AllVertices
int size_
 Total number of vertices.
 
log4cplus::Logger fileLogger_
 
log4cplus::Logger vertexLogger_
 

Detailed Description

Definition at line 83 of file AllIZHNeurons.h.

Member Function Documentation

◆ advanceNeuron()

void AllIZHNeurons::advanceNeuron ( int index)
protectedvirtual

Helper for advanceNeuron. Updates state of a single neuron.

Parameters
indexIndex of the neuron to update.

Update internal state of the indexed Neuron (called by every simulation step).

Parameters
indexIndex of the Neuron to update.

Implements AllSpikingNeurons.

Definition at line 210 of file AllIZHNeurons.cpp.

◆ Create()

static AllVertices * AllIZHNeurons::Create ( )
inlinestatic

Definition at line 89 of file AllIZHNeurons.h.

◆ createAllVertices()

void AllIZHNeurons::createAllVertices ( Layout & layout)
overridevirtual

Creates all the Neurons and assigns initial data for them.

Parameters
layoutLayout information of the neural network.

Creates all the Neurons and generates data for them.

Parameters
layoutLayout information of the neural network.

Reimplemented from AllIFNeurons.

Definition at line 54 of file AllIZHNeurons.cpp.

◆ createNeuron()

void AllIZHNeurons::createNeuron ( int i,
Layout & layout )
protected

Creates a single Neuron and generates data for it.

Parameters
neuronIndexIndex of the neuron to create.
layoutLayout information of the neural network.

Creates a single Neuron and generates data for it.

Parameters
iIndex of the neuron to create.
layoutLayout information of the neural network.

Definition at line 69 of file AllIZHNeurons.cpp.

◆ deserialize()

void AllIZHNeurons::deserialize ( istream & input)
overridevirtual

Reads and sets the data for all neurons from input stream.

Parameters
inputistream to read from.

Sets the data for Neurons to input's data.

Parameters
inputistream to read from.

Reimplemented from AllIFNeurons.

Definition at line 150 of file AllIZHNeurons.cpp.

◆ fire()

void AllIZHNeurons::fire ( int index)
protectedvirtual

Initiates a firing of a neuron to connected neurons.

Parameters
indexIndex of the neuron to fire.

Fire the selected Neuron and calculate the result.

Parameters
indexIndex of the Neuron to update.

Reimplemented from AllSpikingNeurons.

Definition at line 274 of file AllIZHNeurons.cpp.

◆ initNeuronConstsFromParamValues()

void AllIZHNeurons::initNeuronConstsFromParamValues ( int i,
BGFLOAT deltaT )
overrideprotectedvirtual

Initializes the Neuron constants at the indexed location.

Parameters
neuronIndexIndex of the Neuron.
deltaTInner simulation step duration

Initializes the Neuron constants at the indexed location.

Parameters
iIndex of the Neuron.
deltaTInner simulation step duration

Reimplemented from AllIFNeurons.

Definition at line 120 of file AllIZHNeurons.cpp.

◆ printParameters()

void AllIZHNeurons::printParameters ( ) const
overridevirtual

Prints out all parameters of the neurons to logging file. Registered to OperationManager as Operation::printParameters

Reimplemented from AllIFNeurons.

Definition at line 26 of file AllIZHNeurons.cpp.

◆ readNeuron()

void AllIZHNeurons::readNeuron ( istream & input,
int index )
protected

Sets the data for Neuron #index to input's data.

Parameters
inputistream to read from.
indexindex of the neuron (in neurons).

Definition at line 161 of file AllIZHNeurons.cpp.

◆ serialize() [1/2]

template<class Archive >
void AllIZHNeurons::serialize ( Archive & archive)

Cereal serialization method.

Definition at line 328 of file AllIZHNeurons.h.

◆ serialize() [2/2]

void AllIZHNeurons::serialize ( ostream & output) const
overridevirtual

Writes out the data in all neurons to output stream.

Parameters
outputstream to write out to.

Writes out the data in Neurons.

Parameters
outputstream to write out to.

Reimplemented from AllIFNeurons.

Definition at line 182 of file AllIZHNeurons.cpp.

◆ setNeuronDefaults()

void AllIZHNeurons::setNeuronDefaults ( int index)
protected

Set the Neuron at the indexed location to default values.

Parameters
indexIndex of the Neuron that the synapse belongs to.

Set the Neuron at the indexed location to default values.

Parameters
iIndex of the Neuron to refer.

Definition at line 103 of file AllIZHNeurons.cpp.

◆ setupVertices()

void AllIZHNeurons::setupVertices ( )
overridevirtual

Setup the internal structure of the class (allocate memories).

Setup the internal structure of the class. Allocate memories to store all neurons' state.

Reimplemented from AllIFNeurons.

Definition at line 13 of file AllIZHNeurons.cpp.

◆ toString()

string AllIZHNeurons::toString ( int index) const
overridevirtual

Outputs state of the neuron chosen as a string.

Parameters
indexindex of the neuron (in neurons) to output info from.
Returns
the complete state of the neuron.

Reimplemented from AllIFNeurons.

Definition at line 132 of file AllIZHNeurons.cpp.

◆ writeNeuron()

void AllIZHNeurons::writeNeuron ( ostream & output,
int index ) const
protected

Writes out the data in the selected Neuron.

Parameters
outputstream to write out to.
indexindex of the neuron (in neurons).

Definition at line 193 of file AllIZHNeurons.cpp.

Member Data Documentation

◆ Aconst_

vector<BGFLOAT> AllIZHNeurons::Aconst_

A constant (0.02, 01) describing the coupling of variable u to Vm.

Definition at line 248 of file AllIZHNeurons.h.

◆ Bconst_

vector<BGFLOAT> AllIZHNeurons::Bconst_

A constant controlling sensitivity of u.

Definition at line 251 of file AllIZHNeurons.h.

◆ C3_

vector<BGFLOAT> AllIZHNeurons::C3_

Internal constant for the exponential Euler integration.

Definition at line 263 of file AllIZHNeurons.h.

◆ Cconst_

vector<BGFLOAT> AllIZHNeurons::Cconst_

A constant controlling reset of Vm.

Definition at line 254 of file AllIZHNeurons.h.

◆ Dconst_

vector<BGFLOAT> AllIZHNeurons::Dconst_

A constant controlling reset of u.

Definition at line 257 of file AllIZHNeurons.h.

◆ u_

vector<BGFLOAT> AllIZHNeurons::u_

internal variable.

Definition at line 260 of file AllIZHNeurons.h.


The documentation for this class was generated from the following files: