This holds the data that makes up the definition of a synapse type.
Public Fields
-
T_SYNAPSE* source
- For debugging and Reporting on Synapse properties
-
int RSEType
- may be FACIL, DEPR, BOTH, NONE
-
double* TauDepr
- These are pointers to [mean, stdev]
-
int PSGLen
- Length of IPSG or EPSG waveform template
-
double* PSGTemplate
- Pointer to IPSG or EPSG waveform template
-
float MaxG[2]
- Maximum Conductance
-
bool LearnPos
- Flag to indicate whether this synapse should receive Positive Hebbian learning
-
int nPosLearn
- Number of entries in the positive learning table
-
double* PosLearnTable
- Positive learning table.
-
bool LearnNeg
- Flag to indicate whether this synapse should recieve Negative Hebbian learning
-
int nNegLearn
- Number of entries in the negative learning table
-
double* NegLearnTable
- Negative learning table.
Public Methods
-
SynapseDef()
- Default Constructor.
-
SynapseDef(T_SYNAPSE* iSyn, ARRAYS* AR)
- Primary constructor
-
~SynapseDef()
- Destructor, notifies memory tracker that resourced have been freed
-
int SetLearning( int code )
- Set the learning mode of the synapse
-
int Save( FILE* out )
- Write SynapseDef to file.
-
void Load( FILE* in, char* nothing )
- Read SynapseDef from file.
-
int getID()
- Determines where this Synapse Definition appears in TheBrain's list of SynapseDefs.
Documentation
This holds the data that makes up the definition of a synapse type. It
includes much of what was in the old SynapseRSE, SynapsePSG, and
SynapseLearning objects, as well as some info from the synapse itself.
Basically, everything that is the same across some type of synapse is
included (or pointed to from) here, in order to minimize the size of
individual synapses.
- T_SYNAPSE* source
- For debugging and Reporting on Synapse properties
- int RSEType
- may be FACIL, DEPR, BOTH, NONE
- double* TauDepr
- These are pointers to [mean, stdev]
- int PSGLen
- Length of IPSG or EPSG waveform template
- double* PSGTemplate
- Pointer to IPSG or EPSG waveform template
- float MaxG[2]
- Maximum Conductance
- bool LearnPos
- Flag to indicate whether this synapse should receive Positive Hebbian learning
- int nPosLearn
- Number of entries in the positive learning table
- double* PosLearnTable
- Positive learning table. Depending on conditions, a particular index is used
- bool LearnNeg
- Flag to indicate whether this synapse should recieve Negative Hebbian learning
- int nNegLearn
- Number of entries in the negative learning table
- double* NegLearnTable
- Negative learning table. Depending on conditions, a particular index is used
- SynapseDef()
-
Default Constructor. Used when creating an empty structure for Load op
- SynapseDef(T_SYNAPSE* iSyn, ARRAYS* AR)
-
Primary constructor
- Parameters:
- iSyn - Intermediate object generated from input containing synapse template
- AR User input data in parsed and structured format
- ~SynapseDef()
-
Destructor, notifies memory tracker that resourced have been freed
- int SetLearning( int code )
-
Set the learning mode of the synapse
- Parameters:
- code - The type of learning this synapse will now use: 0 = NONE, 1 = +HEBBIAN, 2 = -HEBBIAN, 3 = BOTH
- Returns:
- 0 on success, -1 on failure
- int Save( FILE* out )
-
Write SynapseDef to file. An important note is that the class variable
MaxG can be either a float or a double depending on the compiler options
turned on at the time of compile. Therefore, if the version that saves
MaxG uses the float format, then the version that loads MaxG must also
use the float format.
- Parameters:
- out - file stream to write data
- Returns:
- number of bytes written
- void Load( FILE* in, char* nothing )
-
Read SynapseDef from file. An important note is that the class variable
MaxG can be either a float or a double depending on the compiler options
turned on at the time of compile. Therefore, if the version that saves
MaxG uses the float format, then the version that loads MaxG must also
use the float format.
- Parameters:
- in - file stream to read data from
nothing - dummy pointer to use - will hopefully be removed later
- int getID()
-
Determines where this Synapse Definition appears in TheBrain's list of
SynapseDefs. Created to assist in Saving/Loading the Brain state.
- Returns:
- index into TheBrain->SynapseDefs (0..nDefs-1)
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.