pub struct HillTononiNeuron {Show 34 fields
pub v: f64,
pub theta: f64,
pub d_k: f64,
pub m_h: f64,
pub m_t: f64,
pub h_t: f64,
pub spike_timer: f64,
pub g_na_l: f64,
pub g_k_l: f64,
pub g_na_p: f64,
pub g_dk: f64,
pub g_h: f64,
pub g_t: f64,
pub e_na: f64,
pub e_k: f64,
pub e_na_p: f64,
pub e_dk: f64,
pub e_h: f64,
pub e_t: f64,
pub n_na_p: f64,
pub n_t: f64,
pub tau_m: f64,
pub theta_eq: f64,
pub tau_theta: f64,
pub g_spike: f64,
pub t_spike: f64,
pub tau_spike: f64,
pub tau_d: f64,
pub d_influx_peak: f64,
pub d_threshold: f64,
pub d_slope: f64,
pub d_eq: f64,
pub d_half: f64,
pub dt: f64,
}Expand description
Hill-Tononi cortical-waking state and complete scalar-cell configuration.
Fields§
§v: f64§theta: f64§d_k: f64§m_h: f64§m_t: f64§h_t: f64§spike_timer: f64§g_na_l: f64§g_k_l: f64§g_na_p: f64§g_dk: f64§g_h: f64§g_t: f64§e_na: f64§e_k: f64§e_na_p: f64§e_dk: f64§e_h: f64§e_t: f64§n_na_p: f64§n_t: f64§tau_m: f64§theta_eq: f64§tau_theta: f64§g_spike: f64§t_spike: f64§tau_spike: f64§tau_d: f64§d_influx_peak: f64§d_threshold: f64§d_slope: f64§d_eq: f64§d_half: f64§dt: f64Implementations§
Source§impl HillTononiNeuron
impl HillTononiNeuron
fn m_h_inf(v: f64) -> f64
fn tau_m_h(v: f64) -> f64
fn m_t_inf(v: f64) -> f64
fn tau_m_t(v: f64) -> f64
fn h_t_inf(v: f64) -> f64
fn tau_h_t(v: f64) -> f64
fn d_k_inf(&self, v: f64) -> f64
fn derivatives( &self, state: [f64; 6], current: f64, spike_active: bool, ) -> [f64; 6]
fn shifted(state: [f64; 6], slope: [f64; 6], scale: f64) -> [f64; 6]
fn candidate( &self, state: [f64; 6], current: f64, spike_active: bool, ) -> [f64; 6]
fn configuration_is_valid(&self) -> bool
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 source RK4 step, committing state only after validation.
Trait Implementations§
Source§impl Clone for HillTononiNeuron
impl Clone for HillTononiNeuron
Source§impl Debug for HillTononiNeuron
impl Debug for HillTononiNeuron
Auto Trait Implementations§
impl Freeze for HillTononiNeuron
impl RefUnwindSafe for HillTononiNeuron
impl Send for HillTononiNeuron
impl Sync for HillTononiNeuron
impl Unpin for HillTononiNeuron
impl UnsafeUnpin for HillTononiNeuron
impl UnwindSafe for HillTononiNeuron
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<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.