pub fn validate_range(value: f64, min: f64, max: f64, name: &str) -> Result<()>
Validate that a parameter is in a specified range.