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§
Sourcefn weight_to_current(&self, weight: Weight) -> f64
fn weight_to_current(&self, weight: Weight) -> f64
Convert edge weight to spike input current
Sourcefn degree_to_threshold(&self, degree: usize) -> f64
fn degree_to_threshold(&self, degree: usize) -> f64
Convert vertex degree to spike threshold