GraphToSpike

Trait GraphToSpike 

Source
pub trait GraphToSpike {
    // Required methods
    fn weight_to_current(&self, weight: Weight) -> f64;
    fn degree_to_threshold(&self, degree: usize) -> f64;
}
Expand description

Trait for graph-to-spike transduction

Required Methods§

Source

fn weight_to_current(&self, weight: Weight) -> f64

Convert edge weight to spike input current

Source

fn degree_to_threshold(&self, degree: usize) -> f64

Convert vertex degree to spike threshold

Implementors§