pub enum ModulatorKind {
FiringThreshold,
Leak,
FiringProbability,
TransmissionGain,
Reward,
LearningRate,
Gate,
MemoryFormation,
}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).
Gate
Open/closed switch on the subscribed mapping. Transmission is 0 unless a gate instance in the group has an active driver; then the factor is the signal.
MemoryFormation
Memory formation switch on a subscribed memory area. Factor is
clamp(1 + signal, 0, 1); at 0 the area forms no new memory neurons.
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_area_level(self) -> bool
pub fn is_area_level(self) -> bool
Kinds that subscribe on cortical areas: neuro.* and memory.formation.
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>,
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
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> ⓘ
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> ⓘ
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