pub struct NeuronConfig {
pub tau_membrane: f64,
pub v_rest: f64,
pub v_reset: f64,
pub threshold: f64,
pub t_refrac: f64,
pub resistance: f64,
pub threshold_adapt: f64,
pub tau_threshold: f64,
pub homeostatic: bool,
pub target_rate: f64,
pub tau_homeostatic: f64,
}Expand description
Configuration for LIF neuron
Fields§
§tau_membrane: f64Membrane time constant (ms)
v_rest: f64Resting potential (mV)
v_reset: f64Reset potential after spike (mV)
threshold: f64Initial threshold (mV)
t_refrac: f64Absolute refractory period (ms)
resistance: f64Membrane resistance (MΩ)
threshold_adapt: f64Threshold adaptation increment
tau_threshold: f64Threshold adaptation time constant (ms)
homeostatic: boolEnable homeostatic plasticity
target_rate: f64Target spike rate (spikes/ms) for homeostasis
tau_homeostatic: f64Homeostatic time constant (ms)
Trait Implementations§
Source§impl Clone for NeuronConfig
impl Clone for NeuronConfig
Source§fn clone(&self) -> NeuronConfig
fn clone(&self) -> NeuronConfig
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 NeuronConfig
impl Debug for NeuronConfig
Auto Trait Implementations§
impl Freeze for NeuronConfig
impl RefUnwindSafe for NeuronConfig
impl Send for NeuronConfig
impl Sync for NeuronConfig
impl Unpin for NeuronConfig
impl UnwindSafe for NeuronConfig
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