Trait neural_network::neuron::Neuron [] [src]

pub trait Neuron: Clone + Debug + PartialEq + CustomIO {
    type C: Connection + Sized;
    fn new(prev_layer_size: usize) -> Self;
fn bias(&self) -> f64;
fn output(&self) -> f64;
fn set_output(&mut self, output: f64);
fn connections(&mut self) -> &mut Vec<Self::C>; }

Associated Types

Required Methods

Implementors