pub struct NeuromodulatorState {
pub dopamine: f64,
pub serotonin: f64,
pub acetylcholine: f64,
pub norepinephrine: f64,
pub tau_decay: f64,
}Expand description
Neuromodulator state.
Fields§
§dopamine: f64Dopamine concentration (μM).
serotonin: f64Serotonin concentration (μM).
acetylcholine: f64Acetylcholine concentration (μM).
norepinephrine: f64Norepinephrine concentration (μM).
tau_decay: f64Time constants for decay (ms).
Implementations§
Source§impl NeuromodulatorState
impl NeuromodulatorState
Sourcepub fn release_dopamine(&mut self, amount: f64)
pub fn release_dopamine(&mut self, amount: f64)
Release dopamine.
Sourcepub fn release_serotonin(&mut self, amount: f64)
pub fn release_serotonin(&mut self, amount: f64)
Release serotonin.
Sourcepub fn release_acetylcholine(&mut self, amount: f64)
pub fn release_acetylcholine(&mut self, amount: f64)
Release acetylcholine.
Sourcepub fn release_norepinephrine(&mut self, amount: f64)
pub fn release_norepinephrine(&mut self, amount: f64)
Release norepinephrine.
Sourcepub fn weight_modulation(&self) -> f64
pub fn weight_modulation(&self) -> f64
Get total neuromodulatory effect on synaptic weight.
Trait Implementations§
Source§impl Clone for NeuromodulatorState
impl Clone for NeuromodulatorState
Source§fn clone(&self) -> NeuromodulatorState
fn clone(&self) -> NeuromodulatorState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NeuromodulatorState
impl Debug for NeuromodulatorState
Auto Trait Implementations§
impl Freeze for NeuromodulatorState
impl RefUnwindSafe for NeuromodulatorState
impl Send for NeuromodulatorState
impl Sync for NeuromodulatorState
impl Unpin for NeuromodulatorState
impl UnwindSafe for NeuromodulatorState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more