pub enum ModulatorKind {
FiringThreshold,
Leak,
FiringProbability,
TransmissionGain,
Reward,
LearningRate,
}Expand description
Built-in modulator type. The set is not user-editable.
Variants§
FiringThreshold
Neuron firing threshold. threshold * (1 + signal).
Leak
Neuron leak coefficient, clamped to [0, 1].
FiringProbability
Probabilistic firing excitability, clamped to [0, 1].
TransmissionGain
PSP of the subscribed mapping’s synapses. psp * (1 + signal).
Reward
Adds signal into the mapping’s R-STDP reward R(t).
LearningRate
STDP / R-STDP eta of the mapping. eta * (1 + signal).
Implementations§
Source§impl ModulatorKind
impl ModulatorKind
Sourcepub fn is_neuromodulator(self) -> bool
pub fn is_neuromodulator(self) -> bool
Neuromodulators subscribe on cortical areas.
Sourcepub fn is_synaptic(self) -> bool
pub fn is_synaptic(self) -> bool
Synaptic modulators subscribe on mapping rules.
Sourcepub fn combines_by_addition(self) -> bool
pub fn combines_by_addition(self) -> bool
Reward combines by addition. Every other kind combines by multiplication.
Trait Implementations§
Source§impl Clone for ModulatorKind
impl Clone for ModulatorKind
impl Copy for ModulatorKind
Source§impl Debug for ModulatorKind
impl Debug for ModulatorKind
Source§impl<'de> Deserialize<'de> for ModulatorKind
impl<'de> Deserialize<'de> for ModulatorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ModulatorKind
impl Display for ModulatorKind
impl Eq for ModulatorKind
Source§impl Hash for ModulatorKind
impl Hash for ModulatorKind
Source§impl PartialEq for ModulatorKind
impl PartialEq for ModulatorKind
Source§impl Serialize for ModulatorKind
impl Serialize for ModulatorKind
impl StructuralPartialEq for ModulatorKind
Auto Trait Implementations§
impl Freeze for ModulatorKind
impl RefUnwindSafe for ModulatorKind
impl Send for ModulatorKind
impl Sync for ModulatorKind
impl Unpin for ModulatorKind
impl UnsafeUnpin for ModulatorKind
impl UnwindSafe for ModulatorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more