Function activation_functions::f32::gaussian[][src]

pub fn gaussian(x: f32) -> f32
Expand description

calculate the gaussian to the given f32 number

Examples

let x:f32 = 0.5;
let answer:f32 = gaussian(x);
 
println!("gaussian({}) => {}",x,answer);