pub enum DelayModel {
Fixed {
delay: DelayTicks,
},
DistanceProportional {
speed: f32,
min_delay: DelayTicks,
max_delay: DelayTicks,
},
UniformRandom {
min_delay: DelayTicks,
max_delay: DelayTicks,
},
}Expand description
Strategy for assigning axonal delays to synapses.
Variants§
Fixed
All synapses have the same fixed delay.
Fields
§
delay: DelayTicksDistanceProportional
Delay is proportional to Euclidean distance between neurons.
delay = clamp(round(distance / speed), min_delay, max_delay).
UniformRandom
Delay drawn uniformly from [min_delay, max_delay].
Trait Implementations§
Source§impl Clone for DelayModel
impl Clone for DelayModel
Source§fn clone(&self) -> DelayModel
fn clone(&self) -> DelayModel
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 moreSource§impl Debug for DelayModel
impl Debug for DelayModel
Source§impl Default for DelayModel
impl Default for DelayModel
Source§impl<'de> Deserialize<'de> for DelayModel
impl<'de> Deserialize<'de> for DelayModel
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 DelayModel
impl RefUnwindSafe for DelayModel
impl Send for DelayModel
impl Sync for DelayModel
impl Unpin for DelayModel
impl UnsafeUnpin for DelayModel
impl UnwindSafe for DelayModel
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