pub struct HodgkinHuxleyRk4 {}Fields§
§v: f64§m: f64§h: f64§n: f64§c_m: f64§g_na: f64§g_k: f64§g_l: f64§e_na: f64§e_k: f64§e_l: f64§dt: f64§v_threshold: f64Implementations§
Source§impl HodgkinHuxleyRk4
impl HodgkinHuxleyRk4
pub fn new(dt: f64) -> Self
fn alpha_m(v: f64) -> f64
fn beta_m(v: f64) -> f64
fn alpha_h(v: f64) -> f64
fn beta_h(v: f64) -> f64
fn alpha_n(v: f64) -> f64
fn beta_n(v: f64) -> f64
fn rhs(&self, state: [f64; 4], current: f64) -> [f64; 4]
pub fn step(&mut self, current: f64) -> i32
Trait Implementations§
Source§impl Clone for HodgkinHuxleyRk4
impl Clone for HodgkinHuxleyRk4
Source§fn clone(&self) -> HodgkinHuxleyRk4
fn clone(&self) -> HodgkinHuxleyRk4
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HodgkinHuxleyRk4
impl RefUnwindSafe for HodgkinHuxleyRk4
impl Send for HodgkinHuxleyRk4
impl Sync for HodgkinHuxleyRk4
impl Unpin for HodgkinHuxleyRk4
impl UnsafeUnpin for HodgkinHuxleyRk4
impl UnwindSafe for HodgkinHuxleyRk4
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