pub struct SCResettingMATNeuron {}Expand description
Complete state and configuration for the SC resetting-MAT recurrence.
Fields§
§v: f64Membrane voltage.
theta1: f64Fast threshold-adaptation state.
theta2: f64Slow threshold-adaptation state.
v_rest: f64Resting voltage.
v_reset: f64Post-event reset voltage.
v_threshold_base: f64Baseline threshold.
tau_m: f64Membrane time constant.
tau_1: f64Fast adaptation time constant.
tau_2: f64Slow adaptation time constant.
h1: f64Fast event increment.
h2: f64Slow event increment.
resistance: f64Input resistance.
dt: f64RK4 step size.
Implementations§
Source§impl SCResettingMATNeuron
impl SCResettingMATNeuron
fn derivatives( &self, v: f64, theta1: f64, theta2: f64, current: f64, ) -> [f64; 3]
fn rk4_candidate(&self, current: f64) -> [f64; 3]
Sourcepub fn try_step(&mut self, current: f64) -> Result<i32, &'static str>
pub fn try_step(&mut self, current: f64) -> Result<i32, &'static str>
Advance one atomic candidate-first RK4 step with voltage reset on event.
Trait Implementations§
Source§impl Clone for SCResettingMATNeuron
impl Clone for SCResettingMATNeuron
Source§impl Debug for SCResettingMATNeuron
impl Debug for SCResettingMATNeuron
Source§impl Default for SCResettingMATNeuron
impl Default for SCResettingMATNeuron
Source§impl PartialEq for SCResettingMATNeuron
impl PartialEq for SCResettingMATNeuron
impl StructuralPartialEq for SCResettingMATNeuron
Auto Trait Implementations§
impl Freeze for SCResettingMATNeuron
impl RefUnwindSafe for SCResettingMATNeuron
impl Send for SCResettingMATNeuron
impl Sync for SCResettingMATNeuron
impl Unpin for SCResettingMATNeuron
impl UnsafeUnpin for SCResettingMATNeuron
impl UnwindSafe for SCResettingMATNeuron
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,
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§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.