pub fn sigmoid(x: f32) -> f32
Calculates the sigmoid activation function for a given input.
x
let x = 0.5; let result = cgl_rs::math::activations::sigmoid(x); println!("sigmoid({}) = {}", x, result);