(x: f64, mu: f64, sigma: f64)
| 80 | } |
| 81 | |
| 82 | pub fn standardize_log(x: f64, mu: f64, sigma: f64) -> f64 { |
| 83 | if sigma == 0.0 { |
| 84 | return 0.0; |
| 85 | } |
| 86 | (x - mu) / sigma |
| 87 | } |
| 88 | |
| 89 | pub fn standardize_log_form_vec(vec: &[f64]) -> Vec<f64> { |
| 90 | // Filter out non-finite values for statistics calculation |
no outgoing calls
no test coverage detected