pub enum RateFunction {
HodgkinHuxley {
a: f64,
b: f64,
c: f64,
},
Exponential {
a: f64,
b: f64,
c: f64,
},
Sigmoid {
a: f64,
b: f64,
c: f64,
},
Linear {
a: f64,
b: f64,
},
Constant(f64),
}Expand description
Rate function type
Variants§
HodgkinHuxley
Standard HH form: A*(V+B)/(exp((V+B)/C)-1)
Exponential
Exponential: A*exp((V+B)/C)
Sigmoid
Sigmoid: A/(1+exp((V+B)/C))
Linear
Linear: A*(V+B)
Constant(f64)
Constant
Implementations§
Trait Implementations§
Source§impl Clone for RateFunction
impl Clone for RateFunction
Source§fn clone(&self) -> RateFunction
fn clone(&self) -> RateFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RateFunction
impl Debug for RateFunction
Source§impl<'de> Deserialize<'de> for RateFunction
impl<'de> Deserialize<'de> for RateFunction
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
Auto Trait Implementations§
impl Freeze for RateFunction
impl RefUnwindSafe for RateFunction
impl Send for RateFunction
impl Sync for RateFunction
impl Unpin for RateFunction
impl UnwindSafe for RateFunction
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