Constant set_genome::activations::STEP[][src]

pub const STEP: fn(_: f64) -> f64 = |val| if val > 0.0 { 1.0 } else { 0.0 }; // {<[closure@src/genes/nodes/activations.rs:44:34: 44:73] as std::ops::FnOnce<(f64,)>>::call_once as fn(f64) -> f64}

Returns one if argument greater than zero, else zero.