pub struct DefaultSpikeGraphTransducer {
pub weight_factor: f64,
pub current_factor: f64,
pub threshold_scale: f64,
}Expand description
Default implementation of spike-to-graph transduction
Fields§
§weight_factor: f64Weight modulation factor
current_factor: f64Current conversion factor
threshold_scale: f64Threshold scaling
Implementations§
Trait Implementations§
Source§impl Clone for DefaultSpikeGraphTransducer
impl Clone for DefaultSpikeGraphTransducer
Source§fn clone(&self) -> DefaultSpikeGraphTransducer
fn clone(&self) -> DefaultSpikeGraphTransducer
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 DefaultSpikeGraphTransducer
impl Debug for DefaultSpikeGraphTransducer
Source§impl Default for DefaultSpikeGraphTransducer
impl Default for DefaultSpikeGraphTransducer
Source§fn default() -> DefaultSpikeGraphTransducer
fn default() -> DefaultSpikeGraphTransducer
Returns the “default value” for a type. Read more
Source§impl GraphToSpike for DefaultSpikeGraphTransducer
impl GraphToSpike for DefaultSpikeGraphTransducer
Source§fn weight_to_current(&self, weight: Weight) -> f64
fn weight_to_current(&self, weight: Weight) -> f64
Convert edge weight to spike input current
Source§fn degree_to_threshold(&self, degree: usize) -> f64
fn degree_to_threshold(&self, degree: usize) -> f64
Convert vertex degree to spike threshold
Source§impl SpikeToGraph for DefaultSpikeGraphTransducer
impl SpikeToGraph for DefaultSpikeGraphTransducer
Source§fn spikes_to_weights(&self, spikes: &[Spike], graph: &mut DynamicGraph)
fn spikes_to_weights(&self, spikes: &[Spike], graph: &mut DynamicGraph)
Convert spike train to edge weight modulation
Source§fn graph_to_spike_rates(&self, graph: &DynamicGraph) -> Vec<f64>
fn graph_to_spike_rates(&self, graph: &DynamicGraph) -> Vec<f64>
Encode graph state as spike rates
Auto Trait Implementations§
impl Freeze for DefaultSpikeGraphTransducer
impl RefUnwindSafe for DefaultSpikeGraphTransducer
impl Send for DefaultSpikeGraphTransducer
impl Sync for DefaultSpikeGraphTransducer
impl Unpin for DefaultSpikeGraphTransducer
impl UnwindSafe for DefaultSpikeGraphTransducer
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