Synapse - Overdrive77/BioSynapStudio-Public GitHub Wiki
Synapse Class
Summary
Represents a synapse, the connection between two neurons. It supports spike transmission, hormonal modulation, synaptic plasticity (via STDP), and pruning metrics for biologically accurate simulation.
Namespace
BioSynapStudio.Net.Core
Assembly
BioSynapStudio.Net.dll
Attributes
[Prunable]
— This synapse supports removal based on usage metrics (e.g. for pruning and neurogenesis).
Properties
Name | Type | Description |
---|---|---|
PresynapticNeuron |
Neuron |
The source (sending) neuron. |
PostsynapticNeuron |
Neuron |
The target (receiving) neuron. [MotorMemory] |
Weight |
double |
Synaptic weight or multiplier applied to incoming spikes. [HippocampalMemory][MotorMemory] |
Transmitter |
NeurotransmitterType |
Neurotransmitter type that modulates hormonal response. [HippocampalMemory] |
LastSignal |
double |
The last signal value transmitted through the synapse. (Read-only) |
UsageCounter |
double |
Cumulative activity counter used in pruning decisions. (Read-only) |
LastUsedTick |
double |
Tick value when the synapse was last used. (Read-only) |
TraceMagnitude |
double |
Combined pre- and post-traces for STDP evaluation. (Read-only) |
Methods
Name | Signature | Description |
---|---|---|
Link |
void Link(Neuron source, Neuron target) |
Links a presynaptic and postsynaptic neuron together. |
AttachHormaneLevel |
void AttachHormaneLevel(HormoneLevel hormoneLevel) |
Attaches a shared HormoneLevel instance for hormonal modulation. |
AttachStdpPlasticity |
void AttachStdpPlasticity(TraceStdpPlasticity stdp) |
Enables STDP trace-based plasticity on the synapse. |
Transmit |
void Transmit(double presynapticSpike) |
Transmits a spike through the synapse, applying weight, hormone modulation, and jitter. |
OnPostSynapticSpike |
void OnPostSynapticSpike() |
Should be called when the postsynaptic neuron fires; applies LTD (long-term depression) via STDP. |
Usage Example
var syn = new Synapse();
syn.Link(sourceNeuron, targetNeuron);
syn.Weight = 0.8;
syn.Transmitter = NeurotransmitterType.Dopamine | NeurotransmitterType.Glutamate;
syn.AttachHormaneLevel(hormoneLevel);
syn.AttachStdpPlasticity(new TraceStdpPlasticity());
syn.Transmit(30.0); // Sends signal with full modulation
Remarks
- Hormonal modulation includes dopamine, serotonin, oxytocin, adrenaline, cortisol, and more.
- Synaptic activity is modified with up to ±5% jitter to mimic natural variance.
- Spike timing-dependent plasticity (STDP) is supported using pre- and post-traces via
TraceStdpPlasticity
. - Synapse state is tracked for pruning, neurogenesis, and learning metrics.
See Also
Legal Notice
This software constitutes original intellectual property of the author, protected under international copyright and patent law. Patent: GB2506327.2 – Synthesized Emotional Cognition (SEC) DOI: 10.17605/OSF.IO/XERKF