pub struct SuperSpikeNeuron {
pub v: f64,
pub trace: f64,
pub alpha_m: f64,
pub alpha_e: f64,
pub v_threshold: f64,
pub v_reset: f64,
pub beta_sg: f64,
}Expand description
SuperSpike — LIF with surrogate gradient trace. Zenke & Ganguli 2018.
Fields§
§v: f64§trace: f64§alpha_m: f64§alpha_e: f64§v_threshold: f64§v_reset: f64§beta_sg: f64Implementations§
Trait Implementations§
Source§impl Clone for SuperSpikeNeuron
impl Clone for SuperSpikeNeuron
Source§fn clone(&self) -> SuperSpikeNeuron
fn clone(&self) -> SuperSpikeNeuron
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 SuperSpikeNeuron
impl Debug for SuperSpikeNeuron
Auto Trait Implementations§
impl Freeze for SuperSpikeNeuron
impl RefUnwindSafe for SuperSpikeNeuron
impl Send for SuperSpikeNeuron
impl Sync for SuperSpikeNeuron
impl Unpin for SuperSpikeNeuron
impl UnsafeUnpin for SuperSpikeNeuron
impl UnwindSafe for SuperSpikeNeuron
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